frogamaker [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=83094 Easy Custom 3D Engine 2.1 <p> <table><tr><td> <a href="/bbs/?pid=140742#p"> <img src="/bbs/thumbs/pico8_zenhewum-5.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=140742#p"> Easy Custom 3D Engine 2.1</a><br><br> by <a href="/bbs/?uid=83094"> frogamaker</a> <br><br><br> <a href="/bbs/?pid=140742#p"> [Click to Play]</a> </td></tr></table> </p> <p>Try to solve the maze &gt;:)</p> <p>Arrow keys to look around<br /> ESDF/up and down arrow keys to move</p> <p>--Comments in code explain how everything works, so feel free to take it apart, but ill explain here again:<br /> the player has &quot;raycasts&quot; which are lines that can hit certain objects and return data, sent in front of them at different angles. When these rays hit a wall, they draw a line at a height of the reciprocal of the distance to the point that was hit. The reciprocal is used so it creates perspective (far stuff is small close stuff is big). </p> <p>--IMPORTANT NOTE--<br /> This engine is not the most effective way of doing it, as it does not store map data in strings. It is, however, easier to create maps with this one as you can simply use the built in map editor. If you are willing to lose some efficiency for an easier time, this engine is perfect for you.</p> <p>--Ps. you can use this in whatever you want, just credit me (also if you don't read any of the other notes in the code at least read the last tab, that one is important)</p> <p>--Version history<br /> --1.0<br /> --Old version with reverse fisheye effect and sprite overlapping<br /> --Thanks to <a href="https://www.lexaloffle.com/bbs/?uid=25532"> @freds72</a> for pointing these bugs out<br /> --2.0 reverse fisheye fixed and sprite overlapping fixed<br /> --2.1 minor optimizations</p> https://www.lexaloffle.com/bbs/?tid=140001 https://www.lexaloffle.com/bbs/?tid=140001 Sun, 28 Jan 2024 09:04:13 UTC Bingham Canyon <p> <table><tr><td> <a href="/bbs/?pid=135642#p"> <img src="/bbs/thumbs/pico8_yogudeforo-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=135642#p"> Bingham Canyon</a><br><br> by <a href="/bbs/?uid=83094"> frogamaker</a> <br><br><br> <a href="/bbs/?pid=135642#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=54515 https://www.lexaloffle.com/bbs/?tid=54515 Mon, 09 Oct 2023 05:17:45 UTC