# FLOCKED & LOADED - Devlog

**URL:** <https://forum.makecode.com/t/flocked-loaded-devlog/46574>\
**Category:** Game Design\
**Tags:** game, graphics-and-math, demo, art\
**Created:** [October 21, 2026, 11:50pm UTC](https://forum.makecode.com/t/flocked-loaded-devlog/46574 "2026-10-21T23:50:16Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![OriginalUsername](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/originalusername/32/33031_2.png) [@OriginalUsername](https://forum.makecode.com/u/OriginalUsername)\
**Post date:** [October 25, 2026, 2:39am UTC](https://forum.makecode.com/t/flocked-loaded-devlog/46574/11 "2026-10-25T02:39:58Z")

</div>

# 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](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/6/e/6ebfc0e737b58552c1ca5d75df4797f152458c36.gif)

> **How i did it (nerd explanation \>:\<teehee\>D)**
>
> Two words.
> 
> ## **SINE WAVE**
> 
> ![dotdash_Final_Sine_Wave_Feb_2020-01-b1a62c4514c34f578c5875f4d65c15af](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/2/2/222f310fb40bc36a150c2bb23be0b5baf6d4a35e.jpeg)
> 
> 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.
> 
> ![IMG_1615](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/6/e/6e9f0ad7678ee73a77950215ee37db447df7b30e.jpeg)
> 
> 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! :)

> **[Flocked & Loaded - V 0.5](https://arcade.makecode.com/S01042-71679-61845-57096)**
>
> Oh yay swaying trees

---

_[View the full topic](https://forum.makecode.com/t/flocked-loaded-devlog/46574)._
