gnargle [Lexaloffle Blog Feed] Guy-o-shock <p> <table><tr><td> <a href="/bbs/?pid=46661#p"> <img src="/bbs/thumbs/pico46660.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=46661#p"> Guy-o-shock</a><br><br> by <a href="/bbs/?uid=10088"> gnargle</a> <br><br><br> <a href="/bbs/?pid=46661#p"> [Click to Play]</a> </td></tr></table> <br /> A very, very quick and dumb toy inspired by an episode of the podcast <a href="">2 Good Boys</a>. You're Guy Woodward, and you must regret. There is no win state.</p> Fri, 24 Nov 2017 12:09:42 UTC Mega Tanks <p> <table><tr><td> <a href="/bbs/?pid=27833#p"> <img src="/bbs/thumbs/pico27892.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=27833#p"> Mega Tanks 1.1</a><br><br> by <a href="/bbs/?uid=10088"> gnargle</a> <br><br><br> <a href="/bbs/?pid=27833#p"> [Click to Play]</a> </td></tr></table> </p> <p>Mega Tanks is a Scorched Earth clone for Pico-8, featuring random, deformable terrain generation, rubbish sound effects and turn-based play for 2-4 players.<br /> Controls:<br /> <em>Z to shoot, hold down for increased power.<br /> </em>X to bring up the weapon selection, although right now all weapons are the same.<br /> <em>Left and right to move<br /> </em>Up to use your jets<br /> *Down to move your aiming reticle.<br /> The direction of rotation of the reticle is reversed every time you release the key, to stop players having to wait a whole cycle if they miss the angle they want slightly.</p> <p>This is naturally unfinished but is mechanically complete. I intend to add more weapons over time :)</p> <p>Small update: shells now collide with tanks :)</p> Thu, 01 Sep 2016 09:07:38 UTC Pico-8 collision detection for fast-moving objects <p>Hi there,<br /> I'm making a scorched earth-style game and it's all coming together pretty well, but I'm having some real problems with collision. Right now what I've got is pretty rudimentary but I can't work out how to do it any better. Basically when the tank fires a shot, the shot moves in a parabola with variables yspeed and xspeed that get added on to the y and x positions of the shot each frame. The shot cannot collide with anything for two frames (to prevent collision with the tank itself) but after that, the shot should explode on contact with any pixel that isn't the colour of the background (i.e. black). However, if moving at a decent speed it will usually move through walls for a frame or so before exploding.</p> <p>I've attached the cartridge and the relevant collision code. </p> <div> <div class=scrollable_with_touch style="width:100%; 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 shot:update() if self.timeout &gt; 0 then self.x = flr(self.x + self.xspeed) self.y = flr(self.y + self.yspeed) self.yspeed = self.yspeed + gravity self.timeout -= 1 else if self.x&gt;=127 then self.x = 127 fired = false end if self.x&lt;=0 then self.x = 0 fired = false end if self.y&gt;=127 then self.y = 127 fired = false explode = true sfx(1,1) end if pget(self.x,self.y+3)!=0 and pget(self.x,self.y+3)!=textclr then fired = false explode = true sfx(1,1) end self.x = flr(self.x + self.xspeed) self.y = flr(self.y + self.yspeed) self.yspeed = self.yspeed + gravity 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> <img style="margin-bottom:16px" border=0 src="" alt="" /> Mon, 29 Aug 2016 12:50:46 UTC Terminal 'Emulator' <p> <table><tr><td> <a href="/bbs/?pid=11646#p"> <img src="/bbs/thumbs/pico11645.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=11646#p"> Terminal 'Emulator' 1</a><br><br> by <a href="/bbs/?uid=10088"> gnargle</a> <br><br><br> <a href="/bbs/?pid=11646#p"> [Click to Play]</a> </td></tr></table> A silly little fake terminal I made to experiment with the Pico-8. Includes a way of iterating through strings using substrings, as well as a sprite-based font and a few functions that can be used to draw text anywhere on screen.</p> Fri, 17 Jul 2015 11:33:58 UTC