Logarhythm [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=60859 PICO HEXAGON <p> <table><tr><td> <a href="/bbs/?pid=118311#p"> <img src="/bbs/thumbs/pico8_logarhythm_hexagon0-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=118311#p"> PICO HEXAGON</a><br><br> by <a href="/bbs/?uid=60859"> Logarhythm</a> <br><br><br> <a href="/bbs/?pid=118311#p"> [Click to Play]</a> </td></tr></table> </p> <p>An homage to Super Hexagon by Terry Cavanagh.<br /> Most of development was done in Jan 2022 but lots of tuning and polish to finish it up went in the past couple of weeks.</p> <p>Controls: z,x and left/right arrow keys. Enter key for menu.</p> <img style="margin-bottom:16px" border=0 src="/media/60859/18_ph_title.gif" alt="" /> <img style="margin-bottom:16px" border=0 src="/media/60859/19_ph_gameplay.gif" alt="" /> <img style="margin-bottom:16px" border=0 src="/media/60859/20_ph_morph.gif" alt="" /> <p>Like the original, this game is HARD! Find a path through for 120 seconds to win the stage.</p> <p>Code comments should help if you'd like to hack the stage palettes, tweak speeds, or make your own patterns.</p> <p>Please feel free to remix.</p> <p>Thanks to <a href="https://www.lexaloffle.com/bbs/?uid=28958"> @p01</a> for the efficient pico-8 triangle drawing routine used here.<br /> Thanks to pico-8 hexagon 1K, etc competitors for inspiration!</p> https://www.lexaloffle.com/bbs/?tid=49574 https://www.lexaloffle.com/bbs/?tid=49574 Sat, 01 Oct 2022 20:28:48 UTC iOS 15 Safari controls issue <p>I recently updated my iphone to OS 15, which changed some Safari browser behaviors. The title bar can optionally be at the bottom, and there's a new gesture (flick up) that can hide the title bar. For some reason, this will move just the D-pad and buttons on the BBS up and down on the screen during normal gameplay (e.g. using the d-pad to play.) This makes it pretty much impossible to play anything on the BBS unfortunately.</p> <p>Oddly enough this <em>doesn't</em> seem to be an issue with direct html exports hosted on my own site, so it's likely BBS-specific. I don't know web coding but maybe there's something to do with the embedding or frame size.</p> <p>I did try changing Safari settings (such as moving the title bar back up) and disabling accessibility gestures in the OS, but none of this helps, unfortunately.</p> <p>Hopefully there's some easy solution with the .bbs page layout? The Sisyphean toil of keeping things working in browsers continues :( Thanks for looking!</p> https://www.lexaloffle.com/bbs/?tid=45869 https://www.lexaloffle.com/bbs/?tid=45869 Sun, 26 Dec 2021 21:40:52 UTC Notita <p> <table><tr><td> <a href="/bbs/?pid=103361#p"> <img src="/bbs/thumbs/pico8_notita_0-4.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=103361#p"> Notita 1.4</a><br><br> by <a href="/bbs/?uid=60859"> Logarhythm</a> <br><br><br> <a href="/bbs/?pid=103361#p"> [Click to Play]</a> </td></tr></table> </p> <p>A PICO-8 version of a &quot;falling sand&quot; materials simulator, including sand, water, stone, wood, fire, acid, gunpowder and smoke! </p> <h3>Controls:</h3> <ul> <li>Left mouse button / x: Paint material</li> <li>Right mouse button / o: Clear materials</li> <li>Click the palette on left to select material to paint</li> <li>Slider on bottom left sets tool size</li> </ul> <img style="margin-bottom:16px" border=0 src="/media/60859/notita_1.gif" alt="" /> <p>This is based on bits I remember from a talk given by the creator of the game &quot;Noita,&quot; and the clever types of materials and behaviors from that game.</p> <p>To make this run acceptably in pico-8 it only simulates in portion of the screen size. Positions and materials are represented by a pico-8 color in a Lua table of fixed positions. Materials behavior is in update60() and should be easy to hack for fun. _draw() does a little bit to make flames flicker. Since the world simulates bottom-to-top, rising materials like smoke get carried along with the update and move very fast because they 'ride' the update direction.</p> <p>Originally I did some experiments with 1-d tables, and also using pget/pset but didn't get good performance, so I settled on timeslicing to update bottom-to-top about 10 rows per update60(). (An artifact of this is banding in rising smoke.) The top bits in each color could probably be used to store something like particle lifespans (for burning, etc)and keep memory tight, but I opted to rely on rnd() and color-based states for things like fire instead. Using bitvectors could probably improve performance of the if..else trees for material update behavior. Somebody savvy in pico-8's particulars with cpu operations could probably optimize this far better, perhaps with direct peek/poke to vram!</p> <h3>Revisions:</h3> <p>Version 1.4:</p> <ul> <li>Added Gunpowder and Acid</li> <li>Refined water behavior</li> <li>Tool size now goes down to 1</li> </ul> <p>Version 1.3:</p> <ul> <li>Optimized Erase tool to not burn CPU opcodes</li> <li>Holding Erase button now overrides Add button (Allowing Erasing on touch screens)</li> <li>Other minor optimizations</li> </ul> <p>Version 1.2:</p> <ul> <li>Many PICO-8 opcode optimizations (Thanks to <a href="https://www.lexaloffle.com/bbs/?uid=24137"> @luchak</a> for suggestions!)</li> <li>Expanded the simulation area by 11 columns thanks to savings</li> <li>Cleaned up look/feel, starts with blank slate</li> </ul> <p>Version 1.1:</p> <ul> <li>Joypad and mouse both work in the same build</li> <li>Tool size shown next to slider</li> <li>Momentary instructions shown</li> </ul> https://www.lexaloffle.com/bbs/?tid=45811 https://www.lexaloffle.com/bbs/?tid=45811 Wed, 22 Dec 2021 20:49:14 UTC &quot;Fit&quot; Santa <p> <table><tr><td> <a href="/bbs/?pid=102430#p"> <img src="/bbs/thumbs/pico8_fit_santa_00-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=102430#p"> &quot;Fit&quot; Santa 1.1</a><br><br> by <a href="/bbs/?uid=60859"> Logarhythm</a> <br><br><br> <a href="/bbs/?pid=102430#p"> [Click to Play]</a> </td></tr></table> <br /> It's nearly midnight and there are still presents to deliver, and treats to eat! </p> <h3>Controls:</h3> <p>Press x to deliver presents and score points.<br /> Press o to jump over vegetables and through obstacles.</p> <img style="margin-bottom:16px" border=0 src="/media/60859/santa_0.gif" alt="" /> <p>Earn 5 seconds every 250 pts.<br /> You can hold up to 8 presents, earning one back every treat you eat. Santa's magic also regenerates presents over time, and it gets more powerful the more calories he has.<br /> Beware, Santa-ing is hard work and burns lots of calories. What's more, vegetables are super healthy to elven physiques and actually remove calories!<br /> Get special treat and time bonuses every 2500 pts.<br /> Reach 5000 points for the full suite of treats!</p> <p>The instructions at the title screen should give you most of the hints you need, but see spoilers below for strategy.<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;"><br /> Santa grabs food near his feet!<br /> Getting good at jumping over vegetables and through tables, chairs and trees is key.<br /> Aim at keeping calorie levels higher so you'll regenerate presents faster.<br /> Prioritize where to put presents to maximize points and get the time bonuses ASAP when there's a choice.<br /> In the late game, you may wish to eat veggies sometimes to optimize your view!<br /> </div></div></div><br /> I've written lots of Lua but this is my first Pico-8 cart. It's been balanced to hopefully be pretty fun to spend a while with :) I've pared down the code and comments to fit in the compressed size limit, but it should be easy to follow if you're interested.</p> <h3>Revisions:</h3> <p>Version 1.1:</p> <ul> <li>High scores now persist (DSET/DGET)</li> <li>Scores can be reset from the game menu</li> </ul> https://www.lexaloffle.com/bbs/?tid=45667 https://www.lexaloffle.com/bbs/?tid=45667 Sat, 11 Dec 2021 23:19:08 UTC