programaths [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=54165 Box pusher <p> <table><tr><td> <a href="/bbs/?pid=91648#p"> <img src="/bbs/thumbs/pico8_bomomesaka-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=91648#p"> Box pusher</a><br><br> by <a href="/bbs/?uid=54165"> programaths</a> <br><br><br> <a href="/bbs/?pid=91648#p"> [Click to Play]</a> </td></tr></table> </p> <ul> <li>How to have sprites pushing other sprites</li> <li>How to handle multiple sprites and attach functions to them</li> <li>How to use the tilemap to know where to create sprites instead of hard-coding</li> <li>Detect if two rectangles are overlapping and the side on which the collision took place</li> </ul> <p>NOTE: collision handling is not optimized at all (both sprites check all the other sprites)</p> https://www.lexaloffle.com/bbs/?tid=42803 https://www.lexaloffle.com/bbs/?tid=42803 Fri, 07 May 2021 17:02:33 UTC