Log In  
Follow
jaronimoe
[ :: Read More :: ]

Cart #valentine-0 | 2021-02-16 | Code ▽ | Embed ▽ | No License
3

I coded this tiny demo based off @mhughson 's micro platformer demo as an exercise to get more familiar with the basic pico-8 API.
However, I came up with a fun particle effect and wanted to share it - maybe it could be of interest to someone.

The basic idea is to scale a sprite from size 0 to X (however large it should become), and shift its position by a movement vector each frame (determining the speed and direction of movement). The movement vector is based on a random point on the unit circle (direction) that is multiplied by a scaling factor (speed).

You will find a detailed documentation of the code inside the cartridge.

P#87776 2021-02-16 22:54

Follow Lexaloffle:          
Generated 2024-03-29 05:38:33 | 0.081s | Q:10