bctr [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=34140 pico3e - 3D physics engine <p>PIco3e is a 3D collision engine written in PICO-8! As far with the alpha release, what it does is...</p> <img style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/34140/pico3e_3.gif" alt="" /> <img style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/34140/pico3e_4.gif" alt="" /> <img style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/34140/pico3e_5.gif" alt="" /> <p>This was the alpha version, in wireframe. It does work with arbitrary rotated bodies and solve the forces correctly. It took me about 3 weeks of learning &amp; coding, and below is the demo cart I've been using it for proof of work.</p> <p>Implemented features from reference project qu3e:</p> <ul> <li>3D Oriented Bounding Box (OBB) collision detection and resolution</li> <li>Discrete collision detection</li> <li>Collision test via the Separating Axis Theorem </li> <li>Collision manifold generation via face-to-face method and the sutherland clipping</li> </ul> <p>Token usage: 2873 (with current scene). Thus space is sufficient for some game logic. Unfortunately cpu usage is a bit high, with collision between each 2 bodies takes 5% cpu in 30 fps and doubled in 60 fps. Therefore it's assumed optimal number of bodies is &lt;= 4.</p> <p>v1.0.0 Known issues:</p> <ol> <li>edge to face collision's force center is biased</li> <li>body doesn't rotate if supporting force is aligned to mass center</li> <li>cannot handle multiple body collisions / compound forces</li> </ol> <p>And especially thanks so much to <a href="https://www.lexaloffle.com/bbs/?uid=25532"> @freds72</a> without his help I couldn't make this happen.</p> <hr /> <p>Aug 13th, 2019. Update with a playable scene and fixed the edge to face collision bug.</p> <p>Press Z to take a screenshot when the same color faces are aligned to camera.</p> <p> <table><tr><td> <a href="/bbs/?pid=66779#p"> <img src="/bbs/thumbs/pico8_hayonuzoyu-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=66779#p"> pico3e - 3D physics engine</a><br><br> by <a href="/bbs/?uid=34140"> bctr</a> <br><br><br> <a href="/bbs/?pid=66779#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=35117 https://www.lexaloffle.com/bbs/?tid=35117 Mon, 19 Aug 2019 13:41:00 UTC alpine7000 <p>Hi! Folks. Here's my submission for 7DRL 2019.</p> <p>It's a turn-based survival game, in which you play as a mountaineer trying to reach 7000m with limited supply. For now we basically have only one type of room.</p> <p> <table><tr><td> <a href="/bbs/?pid=62743#p"> <img src="/bbs/thumbs/pico8_alpine7000-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=62743#p"> alpine7000</a><br><br> by <a href="/bbs/?uid=34140"> bctr</a> <br><br><br> <a href="/bbs/?pid=62743#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=33600 https://www.lexaloffle.com/bbs/?tid=33600 Mon, 11 Mar 2019 09:12:39 UTC galaxy_generator <p>Modified previous work to add a centroid bar to spiral galaxies.<br /> <a href="https://en.wikipedia.org/wiki/Barred_spiral_galaxy">https://en.wikipedia.org/wiki/Barred_spiral_galaxy</a></p> <p>Press: &quot;x&quot; to regenerate.</p> <p> <table><tr><td> <a href="/bbs/?pid=61460#p"> <img src="/bbs/thumbs/pico8_galaxy_generator-3.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=61460#p"> galaxy_generator</a><br><br> by <a href="/bbs/?uid=34140"> bctr</a> <br><br><br> <a href="/bbs/?pid=61460#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=33125 https://www.lexaloffle.com/bbs/?tid=33125 Sat, 02 Feb 2019 10:55:54 UTC moon_rises <p> <table><tr><td> <a href="/bbs/?pid=61398#p"> <img src="/bbs/thumbs/pico8_moon_rises-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=61398#p"> moon_rises</a><br><br> by <a href="/bbs/?uid=34140"> bctr</a> <br><br><br> <a href="/bbs/?pid=61398#p"> [Click to Play]</a> </td></tr></table> </p> <p>Originally from Tobiasvl's tweetcart: <a href="https://twitter.com/Spug/status/1090559155436511232">https://twitter.com/Spug/status/1090559155436511232</a></p> <p>(Sorry I didn't include the link before.)</p> https://www.lexaloffle.com/bbs/?tid=33107 https://www.lexaloffle.com/bbs/?tid=33107 Thu, 31 Jan 2019 18:02:24 UTC Proc-gen Galaxy <p>Taken from a discord's discussion, algorithm provided by @ skaarjslayer: <a href="http://itinerantgames.tumblr.com/post/78592276402/a-2d-procedural-galaxy-with-c">http://itinerantgames.tumblr.com/post/78592276402/a-2d-procedural-galaxy-with-c</a></p> <p>And also reference to: <a href="https://en.wikipedia.org/wiki/Archimedean_spiral">https://en.wikipedia.org/wiki/Archimedean_spiral</a></p> <p> <table><tr><td> <a href="/bbs/?pid=61357#p"> <img src="/bbs/thumbs/pico8_gotunozosi-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=61357#p"> gotunozosi</a><br><br> by <a href="/bbs/?uid=34140"> bctr</a> <br><br><br> <a href="/bbs/?pid=61357#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=33088 https://www.lexaloffle.com/bbs/?tid=33088 Wed, 30 Jan 2019 15:41:00 UTC