justgage [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=16940 Towerfall like physics engine <p>This is part of the code I wrote to make a &quot;foolproof&quot; physics engine (meaning there's no way for an object to pass through a block by going too fast). It uses mget to check if a tile is there or not which should be pretty fast although maybe not the fastest. This is based on the blog post by Towerfall creator Matt. Although there's missing features like moving solids and stuff it's inspired by it. </p> <p>If you haven't read the blog post about this you should, it's quite insightful! </p> <p><a href="http://mattmakesgames.tumblr.com/post/127890619821/towerfall-physics"><a href="http://mattmakesgames.tumblr.com/post/127890619821/towerfall-physics">http://mattmakesgames.tumblr.com/post/127890619821/towerfall-physics</a></a></p> <p> <table><tr><td> <a href="/bbs/?pid=32832#p"> <img src="/bbs/thumbs/pico32831.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=32832#p"> TowerfallLikePhysics</a><br><br> by <a href="/bbs/?uid=16940"> justgage</a> <br><br><br> <a href="/bbs/?pid=32832#p"> [Click to Play]</a> </td></tr></table> </p> <p>Controls:</p> <p>arrows, o to jump normally, x to fly really fast upwards to show that you won't pass through things<br /> at extreme speeds. </p> <p>Feel free to use this code. </p> https://www.lexaloffle.com/bbs/?tid=28127 https://www.lexaloffle.com/bbs/?tid=28127 Wed, 30 Nov 2016 01:34:40 UTC