FLOCKED & LOADED - Devlog

UPDATE 0.5

Yippee another update!

So today I took @BLADEr’s (thanks btw) advice and made swaying trees with their brilliant image rotation extension.

Microsoft MakeCode Arcade and 22 more pages - Personal - Microsoft_ Edge 2026-10-24 18-42-23

How i did it (nerd explanation >:<teehee>D)

Two words.

SINE WAVE

A sine wave is a smooth oscillation, going above and below a central value.
I’m no expert on this subject, i’m just playing with blocks, but…

I have a constantly increasing variable ‘tick’, and rotate an image by using:

sin((tick * frequency/0.1) + treeX) * amplitude/7

But thats too predictable.
We need randomness.
We need.. a second sine wave.

We can do

sin((tick * frequency/0.1) + treeX) * amplitude/7 + sin((tick * frequency/0.3) + treeX) * amplitude/4

And get something that looks like this.

And the shadows are just Richard’s shade extension, rendering the tree as a shadow, but with a 220 degree offset.

Try it out here! :)

14 Likes