Zach_Attakk [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=31647 Prime Spiral <p> <table><tr><td> <a href="/bbs/?pid=107394#p"> <img src="/bbs/thumbs/pico8_prime_spiral-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=107394#p"> prime_spiral</a><br><br> by <a href="/bbs/?uid=31647"> Zach_Attakk</a> <br><br><br> <a href="/bbs/?pid=107394#p"> [Click to Play]</a> </td></tr></table> <br /> After watching this episode of Coding Train's coding challenge, I thought a square screen would be perfect for this sort of thing. It's not my cleanest code but it's pretty interesting to watch.</p> <ul> <li>➡️ makes it go faster (increase frame skip)</li> <li>⬅️ slows down (to a stop)</li> </ul> <p><object width="640" height="400"><param name="movie" value="https://www.youtube.com/v/ <table><tr><td> <a href="/bbs/?pid=107394#p"> <img src="/bbs/thumbs/pico8_prime_spiral-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=107394#p"> prime_spiral</a><br><br> by <a href="/bbs/?uid=31647"> Zach_Attakk</a> <br><br><br> <a href="/bbs/?pid=107394#p"> [Click to Play]</a> </td></tr></table> <br /> a35KWEjRvc0&hl=en&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="https://www.youtube.com/v/ <table><tr><td> <a href="/bbs/?pid=107394#p"> <img src="/bbs/thumbs/pico8_prime_spiral-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=107394#p"> prime_spiral</a><br><br> by <a href="/bbs/?uid=31647"> Zach_Attakk</a> <br><br><br> <a href="/bbs/?pid=107394#p"> [Click to Play]</a> </td></tr></table> <br /> a35KWEjRvc0&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="400"></embed></object></p> https://www.lexaloffle.com/bbs/?tid=46693 https://www.lexaloffle.com/bbs/?tid=46693 Mon, 21 Feb 2022 09:54:35 UTC First game: 2048 <p> <table><tr><td> <a href="/bbs/?pid=57462#p"> <img src="/bbs/thumbs/pico58080.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=57462#p"> 2048 0.04</a><br><br> by <a href="/bbs/?uid=31647"> Zach_Attakk</a> <br><br><br> <a href="/bbs/?pid=57462#p"> [Click to Play]</a> </td></tr></table> </p> <p>Picked something simple for my first PICO-8 game. Also first time coding in Lua so the code is probably horrid.</p> <p>It's <a href="https://en.wikipedia.org/wiki/2048_(video_game)">basically this</a>. I've only managed 1024 myself and I don't know what happens after 8192 because there's no more sprites after that.</p> <p><span style="text-decoration: underline;">Changes:</span></p> <ul> <li>Using sspr() instead of spr() to draw parts of blocks, so they appear to flow into each other when merging</li> <li>Animation cycle now skips if there's nothing to change, speeding up response time. </li> <li>Added instructions</li> <li>Added game over screen with restart button</li> <li>Added persistent high score (thanks <a href="https://www.lexaloffle.com/bbs/?pid=57487#p57487">tobiasvl</a>)</li> <li>Quick fix to high score because I'm bad at variable names</li> </ul> <p><span style="text-decoration: underline;">To do:</span></p> <ul> <li>Add sounds maybe (how do you make a sliding sound in PICO-8?)</li> <li>Some sort of fanfare when you reach 2048? Fireworks?</li> </ul> <p>I doubt I'll come back to this. It has reached my mental &quot;close enough&quot;.</p> https://www.lexaloffle.com/bbs/?tid=31989 https://www.lexaloffle.com/bbs/?tid=31989 Wed, 03 Oct 2018 09:15:42 UTC