Tiny Code Christmas - Day 9

Welcome to Day 9 of Tiny Code Christmas! If you’re just joining us don’t forget to check out the overview, and start at Day 1! You can start whenever you like, there are no deadlines!

Today we’re look at a classic shadebob effect. Combine some nice motion patterns with an additive drawing effect and master today’s challenge. For TIC-80 users we’ll also be taking a look at the poke function and how can use it to set our pixels and our palettes.

Liquidream has helpfully provided a PICO-8 palette that is suitable for gradient usage, compressed using 2DArray’s “Palette Maker” to 25 chars:

?"⁶!5f100█2☉9:⌂⬅️⬇️1▒😐<765"

The Challenge: Shade the Bob

The first challenge is to get an animated shadebob effect on the screen! Use sin and cos to create an animated shadebob, you’ll have to do the additive bit yourself!

You can check out our Day 9 video above for an overview on this type of effect.

An Example of the Day 9 Challenge completed with TIC-80 by mantratronic
An Example of the Day 9 Challenge completed with TIC-80 by mantratronic

The second challenge is to keep your effect at a maximum of 256 characters. For TIC-80 experiment with some of the palettes from the Bytebattle page on sizecoding.org!

The Expert Challenge

These expert challenges will push your sizecoding knowledge to the limit! Don’t forget to check out our previous Expert Challenges!

  • Shadebob(s) with a minimal size of 32 pixels
  • moving in varying circular/sine pattern
  • 128 character limit, the smaller the better!
An Example of the Day 9 Challenge completed with TIC-80 by Superogue
An Example of the Day 9 Challenge completed with TIC-80 by Superogue

Sharing is Caring!

If you feel like it, why not share what you’ve done with us on the LoveByte Discord, #lovebyte on IRCnet, or share on Twitter and Mastodon using the hashtag #lovebytetcc