jaronimoe [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=13141 valentine <p> <table><tr><td> <a href="/bbs/?pid=87776#p"> <img src="/bbs/thumbs/pico8_valentine-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=87776#p"> valentine</a><br><br> by <a href="/bbs/?uid=13141"> jaronimoe</a> <br><br><br> <a href="/bbs/?pid=87776#p"> [Click to Play]</a> </td></tr></table> </p> <p>I coded this tiny demo based off <a href="https://www.lexaloffle.com/bbs/?uid=15406"> @mhughson</a> 's <a href="https://www.lexaloffle.com/bbs/?pid=28248">micro platformer</a> demo as an exercise to get more familiar with the basic pico-8 API.<br /> However, I came up with a fun particle effect and wanted to share it - maybe it could be of interest to someone.</p> <p>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). </p> <p>You will find a detailed documentation of the code inside the cartridge.</p> <img style="margin-bottom:16px" border=0 src="/media/13141/valentine p8_1.gif" alt="" /> https://www.lexaloffle.com/bbs/?tid=41620 https://www.lexaloffle.com/bbs/?tid=41620 Tue, 16 Feb 2021 22:54:25 UTC