ripter001 [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=44578 Animation with Coroutine <p>After reading this post <a href="https://www.lexaloffle.com/bbs/?tid=38297">https://www.lexaloffle.com/bbs/?tid=38297</a> I got more interested in coroutines. I had originally dismissed them completely, but this article <a href="https://docs.google.com/document/d/14HzJnqKdVtBjN2vN9-rZHLR3rlgwWwDym8ehzhKRqFo">https://docs.google.com/document/d/14HzJnqKdVtBjN2vN9-rZHLR3rlgwWwDym8ehzhKRqFo</a> got me thinking that I had missed something.</p> <p>Here is my before and after wall animation code. (Flappy Bird Game) Both achieve the same result, but I feel like the coroutine version is easier to expand and update. The coroutine encapsulates the entire animation logic, including delay. While the function version has to manage more variables.</p> <p>What do you think? Is the coroutine version better or worse?</p> <img loading="lazy" style="margin-bottom:16px" border=0 src="/media/44578/side_by_side.png" alt="" /> https://www.lexaloffle.com/bbs/?tid=38499 https://www.lexaloffle.com/bbs/?tid=38499 Sat, 20 Jun 2020 15:52:33 UTC Fate Dice Roller <p> <table><tr><td> <a href="/bbs/?pid=76874#p"> <img src="/bbs/thumbs/pico8_fate_roller_v1-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=76874#p"> fate_roller_v1</a><br><br> by <a href="/bbs/?uid=44578"> ripter001</a> <br><br><br> <a href="/bbs/?pid=76874#p"> [Click to Play]</a> </td></tr></table> </p> <h2>FATE/FUDGE Dice Roller</h2> <p>Press any key to re-roll.</p> https://www.lexaloffle.com/bbs/?tid=38028 https://www.lexaloffle.com/bbs/?tid=38028 Thu, 21 May 2020 02:23:45 UTC