ntpopham [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=36605 Minsky test <p>Just a small test using the Minsky algorithm as a fade.</p> <p>Z to switch between rectfill() and memcpy() methods. </p> <p>X to toggle auto-size. If auto-size is off the cursors will resize the circle.</p> <p>NB: The memcpy() method uses the sprite memory for ease; more thought will be required if used in a cart using this memory. The recfill() method is less cpu anyway, so...</p> <p> <table><tr><td> <a href="/bbs/?pid=78701#p"> <img src="/bbs/thumbs/pico8_popsminskytest1-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=78701#p"> popsminskytest1</a><br><br> by <a href="/bbs/?uid=36605"> ntpopham</a> <br><br><br> <a href="/bbs/?pid=78701#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=38614 https://www.lexaloffle.com/bbs/?tid=38614 Tue, 30 Jun 2020 13:43:49 UTC Tiled map to __MAP__ data <p>To use Tiled to create a PICO-8 map export from Tiled to a LUA file called &quot;tiled.lua&quot;.</p> <p><em>NB: You may need to make sure it's LF and not CRLF as current PICO-8 has issues including files using CRLF.</em></p> <p>The following code will export the map and any spites in the cart to &quot;tiled.p8&quot;.</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>function parsetiled() #include tiled.lua end tiled=parsetiled() layer,i=tiled.layers[1],1 for y=0,layer.height-1 do for x=0,layer.width-1 do mset(x,y,layer.data[i]) i+=1 end end cstore(0x0000,0x0000,0x3000,'tiled.p8')</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=36971 https://www.lexaloffle.com/bbs/?tid=36971 Mon, 02 Mar 2020 16:15:50 UTC run.jump.die <p>Just putting this here for now.</p> <p>Needs a little more polish, including some more sfx here and there.</p> <p>Momentum beginning to fade though. Not really sure where I'm going any more.</p> <p>Any feedback welcome. I've a few hundred tokens left to play with IIRC.</p> <p>Controls should be easy to work out, except ⬇ (down) which will throw grenades (unlimited right now).</p> <p> <table><tr><td> <a href="/bbs/?pid=66437#p"> <img src="/bbs/thumbs/pico8_runjumpdie-7.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=66437#p"> runjumpdie</a><br><br> by <a href="/bbs/?uid=36605"> ntpopham</a> <br><br><br> <a href="/bbs/?pid=66437#p"> [Click to Play]</a> </td></tr></table> </p> <p>Edit 1: Used existing sfx where there were previously none in place. Could do with some slight variations for hits and explosions.<br /> Edit 2: Added slight delay to secondary damage giving a chain reaction effect.<br /> Edit 3: Increased smoke when crates and barrels explode.</p> https://www.lexaloffle.com/bbs/?tid=34984 https://www.lexaloffle.com/bbs/?tid=34984 Wed, 07 Aug 2019 13:23:03 UTC