Ender42 [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=42070 Screen Spinner <p> <table><tr><td> <a href="/bbs/?pid=90459#p"> <img src="/bbs/thumbs/pico8_yagizupani-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=90459#p"> yagizupani</a><br><br> by <a href="/bbs/?uid=42070"> Ender42</a> <br><br><br> <a href="/bbs/?pid=90459#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=42449 https://www.lexaloffle.com/bbs/?tid=42449 Tue, 13 Apr 2021 09:21:54 UTC 3D Space Flight Sim <p> <table><tr><td> <a href="/bbs/?pid=89814#p"> <img src="/bbs/thumbs/pico8_three_d_space_sim-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=89814#p"> three_d_space_sim</a><br><br> by <a href="/bbs/?uid=42070"> Ender42</a> <br><br><br> <a href="/bbs/?pid=89814#p"> [Click to Play]</a> </td></tr></table> </p> <h1>full 3d space flight simulator in PICO-8</h1> <h2>controls</h2> <p>roll - x/c<br /> pitch - up/down (not inverted)<br /> yaw - left/right</p> <p>unfortunately the area you can explore is not very big in v1.0 and you can continue to fly out of bounds. Once you reach the edge of the stars, just turn around.</p> <p>go on to explore the stars!</p> https://www.lexaloffle.com/bbs/?tid=42247 https://www.lexaloffle.com/bbs/?tid=42247 Thu, 01 Apr 2021 07:42:58 UTC Space Flight Simulator <p> <table><tr><td> <a href="/bbs/?pid=89811#p"> <img src="/bbs/thumbs/vox_space_sim-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=89811#p"> space_sim</a><br><br> by <a href="/bbs/?uid=42070"> Ender42</a> <br><br><br> <a href="/bbs/?pid=89811#p"> [Click to Play]</a> </td></tr></table> </p> <h2>V1.0 controls:</h2> <p>roll - z/x<br /> pitch - up/down<br /> yaw - left/right</p> https://www.lexaloffle.com/bbs/?tid=42245 https://www.lexaloffle.com/bbs/?tid=42245 Thu, 01 Apr 2021 07:32:59 UTC The Floor is LAVA <h1>Help Toby play <strong><em>&quot;The Floor is LAVA&quot;</em></strong></h1> <p> <table><tr><td> <a href="/bbs/?pid=89771#p"> <img src="/bbs/thumbs/pico8_the_floor_is_lava-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=89771#p"> the_floor_is_lava</a><br><br> by <a href="/bbs/?uid=42070"> Ender42</a> <br><br><br> <a href="/bbs/?pid=89771#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=42240 https://www.lexaloffle.com/bbs/?tid=42240 Wed, 31 Mar 2021 06:22:43 UTC Rainbow Paint <p> <table><tr><td> <a href="/bbs/?pid=89730#p"> <img src="/bbs/thumbs/pico8_rainbow_paint-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=89730#p"> rainbow_paint</a><br><br> by <a href="/bbs/?uid=42070"> Ender42</a> <br><br><br> <a href="/bbs/?pid=89730#p"> [Click to Play]</a> </td></tr></table> </p> <p>click to draw, right-click to erase<br /> use X to erase on mobile</p> https://www.lexaloffle.com/bbs/?tid=42224 https://www.lexaloffle.com/bbs/?tid=42224 Mon, 29 Mar 2021 21:46:13 UTC Modular functions <p>Here is a series of functions that are designed to be easily inserted into any project!<br /> Each should be well commented and has a working example. comment if you have any questions!</p> <img style="" border=0 src="/media/42070/mouselib.p8.png" alt="" /> <p>add a mouse function quickly!</p> <img style="" border=0 src="/media/42070/lookatlib.p8.png" alt="" /> <p>move towards a target with a normalized speed (diagonals are not faster!)</p> <img style="" border=0 src="/media/42070/gpiolib2.p8.png" alt="" /> <p>updated gpio library for (significantly) less tokens. now available for commercial use.<br /> enter the pin (0 to 127) and return the hex (0x5f80 to 0x5fff) with get and set functions<br /> old version included for posterity<br /> <div><div><input type="button" value=" Show " onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = ' Hide '; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = ' Show '; }"></div><div><div style="display: none;"><img style="" border=0 src="/media/42070/gpiolib.p8.png" alt="" /><br /> credit to <a href="https://www.lexaloffle.com/bbs/?tid=30910">https://www.lexaloffle.com/bbs/?tid=30910</a> </div></div></div></p> <img style="" border=0 src="/media/42070/collisionlib.p8.png" alt="" /> <p>covers rect collisions and map flags; circ collisions are in lookatlib</p> <img style="" border=0 src="/media/42070/astarlib.p8.png" alt="" /> <p>grid based path finding using A*<br /> credit to <a href="https://www.lexaloffle.com/bbs/?tid=3131">https://www.lexaloffle.com/bbs/?tid=3131</a> and Pico8 Fanzine #4!</p> https://www.lexaloffle.com/bbs/?tid=40718 https://www.lexaloffle.com/bbs/?tid=40718 Wed, 09 Dec 2020 10:27:21 UTC mouse example <p> <table><tr><td> <a href="/bbs/?pid=84139#p"> <img src="/bbs/thumbs/pico8_misizefide-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=84139#p"> misizefide</a><br><br> by <a href="/bbs/?uid=42070"> Ender42</a> <br><br><br> <a href="/bbs/?pid=84139#p"> [Click to Play]</a> </td></tr></table> </p> <p>THIS CART USES THE DEVKIT MOUSE!!!!<br /> This is just a fun little example :D</p> https://www.lexaloffle.com/bbs/?tid=40343 https://www.lexaloffle.com/bbs/?tid=40343 Thu, 12 Nov 2020 03:38:54 UTC Dangerous Alone <p> <table><tr><td> <a href="/bbs/?pid=81284#p"> <img src="/bbs/thumbs/pico8_dangerous_alone-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=81284#p"> dangerous_alone</a><br><br> by <a href="/bbs/?uid=42070"> Ender42</a> <br><br><br> <a href="/bbs/?pid=81284#p"> [Click to Play]</a> </td></tr></table> <br /> This is the finished version of the original game made for the Extra Credits game jam #6 &quot;Take Care.&quot;</p> <p>jam edition: <a href="https://dmandy.itch.io/dangerous-alone">https://dmandy.itch.io/dangerous-alone</a></p> https://www.lexaloffle.com/bbs/?tid=39399 https://www.lexaloffle.com/bbs/?tid=39399 Fri, 28 Aug 2020 05:48:14 UTC Laser Powered Goblin Smasher v0.1 <p> <table><tr><td> <a href="/bbs/?pid=78261#p"> <img src="/bbs/thumbs/pico8_gloryhammer-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=78261#p"> Laser Powered Goblin Smasher v0.1</a><br><br> by <a href="/bbs/?uid=42070"> Ender42</a> <br><br><br> <a href="/bbs/?pid=78261#p"> [Click to Play]</a> </td></tr></table> <br /> This is a game tribute to the prince of Fife.<br /> It fall under the fan art category. While technically this cart has no actual references to the band, do not distribute this for money, Angus is their i.p.!<br /> Someday:<br /> He will quest for the jet pack and gain a dash ability.</p> <ul> <li>this will include a laser dragon boss battle!</li> </ul> <p>Then he will recharge his hammer in the sun and gain the smash ability.</p> <ul> <li>this will include a Death Knight boss battle!</li> </ul> <p>There may be 8bit heavy metal music!</p> https://www.lexaloffle.com/bbs/?tid=38482 https://www.lexaloffle.com/bbs/?tid=38482 Fri, 19 Jun 2020 07:43:44 UTC Corgi Simulator <p> <table><tr><td> <a href="/bbs/?pid=74007#p"> <img src="/bbs/thumbs/pico8_zutamopuf-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=74007#p"> zutamopuf</a><br><br> by <a href="/bbs/?uid=42070"> Ender42</a> <br><br><br> <a href="/bbs/?pid=74007#p"> [Click to Play]</a> </td></tr></table> <br /> Here is what you have all needed in your life to combat the lows, and be with you in the highs. Maybe you didn't know you needed it, but here, have a Corgi! :D</p> https://www.lexaloffle.com/bbs/?tid=37090 https://www.lexaloffle.com/bbs/?tid=37090 Tue, 17 Mar 2020 11:26:28 UTC Shootout RPG-style combat <p> <table><tr><td> <a href="/bbs/?pid=73707#p"> <img src="/bbs/thumbs/pico8_topifaname-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=73707#p"> topifaname</a><br><br> by <a href="/bbs/?uid=42070"> Ender42</a> <br><br><br> <a href="/bbs/?pid=73707#p"> [Click to Play]</a> </td></tr></table> <br /> Howdy ya'll. Maybe someday I'll make a full Cowboy RPG but for now, I just made a cowboy combat system.<br /> Ride on!</p> https://www.lexaloffle.com/bbs/?tid=37006 https://www.lexaloffle.com/bbs/?tid=37006 Thu, 05 Mar 2020 22:37:23 UTC Platformer Template <p> <table><tr><td> <a href="/bbs/?pid=73270#p"> <img src="/bbs/thumbs/pico8_pehukobido-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=73270#p"> Platformer Template</a><br><br> by <a href="/bbs/?uid=42070"> Ender42</a> <br><br><br> <a href="/bbs/?pid=73270#p"> [Click to Play]</a> </td></tr></table> <br /> Use this however you like!<br /> button 4: jump<br /> button 5: reset</p> https://www.lexaloffle.com/bbs/?tid=36874 https://www.lexaloffle.com/bbs/?tid=36874 Thu, 20 Feb 2020 04:02:19 UTC Collisions from tables <p> <table><tr><td> <a href="/bbs/?pid=73257#p"> <img src="/bbs/thumbs/pico8_sejorobate-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=73257#p"> Collisions From Tables</a><br><br> by <a href="/bbs/?uid=42070"> Ender42</a> <br><br><br> <a href="/bbs/?pid=73257#p"> [Click to Play]</a> </td></tr></table> </p> <p>I could easily find a tutorial on how to make a bounding box collision function online, but I could not easily find an example of iterating through a table to test for collisions, so I made it myself in hopes to help new programmers.</p> <div> <div style="max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>-- collision example -- andy c function _init() -- create player object named block, each object in this example will need an x and a y block = {} block.x = 64 block.y = 64 -- create 6 walls walla = {} walla.x = ceil(rnd(120)) walla.y = ceil(rnd(120)) wallb = {} wallb.x = ceil(rnd(120)) wallb.y = ceil(rnd(120)) wallc = {} wallc.x = ceil(rnd(120)) wallc.y = ceil(rnd(120)) walld = {} walld.x = ceil(rnd(120)) walld.y = ceil(rnd(120)) walle = {} walle.x = ceil(rnd(120)) walle.y = ceil(rnd(120)) wallf = {} wallf.x = ceil(rnd(120)) wallf.y = ceil(rnd(120)) -- add the walls to the wall table walls = {walla, wallb, wallc, walld, walle, wallf} -- here's an inspirational quote: &quot;wall-e&quot; - wall-e end function collision(wall) -- basically if it overlaps on two axis, it's a collision if(block.x &lt; wall.x + 8 and block.x + 8 &gt; wall.x and block.y &lt; wall.y + 8 and block.y + 8 &gt; wall.y)then return true end end function _update() -- basically, move the coordinate, and test a collision for every object in the table. -- if any of them return true, move back the coordinate to where it was -- left if (btn(0) and block.x &gt; 0) then block.x -= 1 for i in all(walls) do if (collision(i)) then block.x += 1 end end end -- right if (btn(1) and block.x &lt; 120) then block.x += 1 for i in all(walls) do if (collision(i)) then block.x -= 1 end end end -- up if (btn(2) and block.y &gt; 0) then block.y -= 1 for i in all(walls) do if (collision(i)) then block.y += 1 end end end -- down if (btn(3) and block.y &lt; 120) then block.y += 1 for i in all(walls) do if (collision(i)) then block.y -= 1 end end end end function _draw() -- iterate through the table and draw a blue square for each block. draw a red square for the player cls() spr(1,block.x,block.y) for i in all(walls) do spr(2,i.x,i.y) end end</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> https://www.lexaloffle.com/bbs/?tid=36869 https://www.lexaloffle.com/bbs/?tid=36869 Wed, 19 Feb 2020 21:13:04 UTC