Shifty [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=29428 Framerate-independent game logic with delta time <p> <table><tr><td> <a href="/bbs/?pid=52209#p"> <img src="/bbs/thumbs/pico52208.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=52209#p"> Delta Time Example</a><br><br> by <a href="/bbs/?uid=29428"> Shifty</a> <br><br><br> <a href="/bbs/?pid=52209#p"> [Click to Play]</a> </td></tr></table> <br /> An example implementation of automatically-calculated delta time in Pico-8, allowing for framerate-independent game logic.<br /> It's not much to look at, but a detailed description is available in the code comments.</p> <p>Example use case:<br /> You've built a project targeting 30FPS, but it turns out to be optimized enough to run at 60FPS.</p> <p>Normally, switching from using _update to _update60 after the fact would be a painful job involving a lot of manual number editing, and you'd be screwed. However, if you had built your project with delta time in mind from the start, you could simply rename and everything will continue to move at the 'correct' rate.</p> https://www.lexaloffle.com/bbs/?tid=31210 https://www.lexaloffle.com/bbs/?tid=31210 Mon, 30 Apr 2018 20:19:38 UTC Combo Paddle <p> <table><tr><td> <a href="/bbs/?pid=52136#p"> <img src="/bbs/thumbs/pico52201.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=52136#p"> Combo Paddle v3</a><br><br> by <a href="/bbs/?uid=29428"> Shifty</a> <br><br><br> <a href="/bbs/?pid=52136#p"> [Click to Play]</a> </td></tr></table> <br /> My first Pico-8 cart, a dumb little twist on bat-and-ball games that involves keeping a juggle combo going so the game will say nice things about you.</p> <p>Made as an exercise in tool-learning and object-oriented programming.</p> <p><strong>v2</strong><br /> Updated with sounds, refined physics and a couple of new mechanics. Bounce the ball off the ceiling or floor for style!</p> <p><strong>v3</strong><br /> Properly constrained paddle to play area.</p> https://www.lexaloffle.com/bbs/?tid=31203 https://www.lexaloffle.com/bbs/?tid=31203 Sun, 29 Apr 2018 14:02:07 UTC