corin [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=37447 Wiggle Room (tweet tweet jam 2) <p> <table><tr><td> <a href="/bbs/?pid=64541#p"> <img src="/bbs/thumbs/pico8_wiggleroom-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=64541#p"> Wiggle Room (tweet tweet jam 2) </a><br><br> by <a href="/bbs/?uid=37447"> corin</a> <br><br><br> <a href="/bbs/?pid=64541#p"> [Click to Play]</a> </td></tr></table> </p> <p>_<br /> Catch the wiggling pixels. As you move through the rooms the pixels will wiggle more and more erratically.</p> <p><strong>Controls 🕹</strong></p> <ul> <li>X to start</li> <li>move with arrow keys</li> </ul> <p><strong>Strategies 🤔</strong></p> <ul> <li>To catch a wild wiggling pixel one must <em>become</em> a wild wiggling pixel </li> </ul> <p>This is the first game I've ever posted to pico8. </p> <p>It might not be much, and it may be a little more annoying than it is fun, but it does just scrape in at exactly 560 characters to get in to the TweetTweetJam2.</p> <p>Any advice on how to improve my rudimentary code (or make a better game) would be appreciated 🙏</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 _init() x=64 y=64 ex=64 ey=44 l=3 s=1 r=1 c=100 t=15 o=true p=print b=btn pc=6 end function _update() cls() if o==true then p(&quot;wiggle room \151&quot;,34,54,pc) if (b(5)) then o=false end elseif o==false then c-=1 if (ex==x and ey==y) then ex=20+flr(rnd(80)) ey=20+flr(rnd(80)) r+=1 t=15 p(&quot;\143&quot;,x-2.5,y,8) end pset(ex+flr(rnd(r)),ey+flr(rnd(r)),8) pset(x,y,pc) p(&quot;\138&quot;..r,2,2) p(&quot;\147&quot;..t,111,2) if (b(0)) then x-=s end if (b(1)) then x+=s end if (b(2)) then y-=s end if (b(3)) then y+=s end if c&lt;=0 then t-=1 c=100 end if t&lt;=0 then _init() end 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=34254 https://www.lexaloffle.com/bbs/?tid=34254 Sat, 18 May 2019 11:23:18 UTC