bekey [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=24146 [56K Warning] Pico-8 Developer's Work-In-Progress Thread <p>Uh... yeah. Sorry about this...</p> <p>As an retired half-life modder and frequent forum poster, I'm pretty used to the idea of mega-threads. Basically, the modding forums that I often visited had at the very least a &quot;random&quot; thread, which people used almost like a chat.</p> <p>Some others would also have a WIP thread, which incentivized people to post their WIPs more often, because they didn't need to go through the effort of creating an entirely new thread, just to show off some minor thing they're working on.</p> <p>So yeah, hate it or love it, I'm just putting the idea forward.</p> <p>Post what you're working on right now here.</p> https://www.lexaloffle.com/bbs/?tid=31158 https://www.lexaloffle.com/bbs/?tid=31158 Sun, 22 Apr 2018 15:27:45 UTC Tamagotchi Game Kit <p> <table><tr><td> <a href="/bbs/?pid=42876#p"> <img src="/bbs/thumbs/pico42875.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=42876#p"> Tamagotchi Game Kit v0.01</a><br><br> by <a href="/bbs/?uid=24146"> bekey</a> <br><br><br> <a href="/bbs/?pid=42876#p"> [Click to Play]</a> </td></tr></table> </p> <p>I am so terribly sorry. I actually intended to demake Insaniquarium using this game kit as some form of sample game, but it ended up sitting on my computer for months.</p> <p>Anyway, over said months, I probably forgot the actual state of this gamekit, but from what I remember:</p> <ul> <li>Allows players to take a break for at least 3 years before breaking.</li> <li>Provides a screen for entering date + time. With this info the game calculates the last time the player played the game. (You basically rely on the player not lying to you, because Pico8 doesn't expose the OS clock.)</li> <li>Unique feature where time is progressing slower while the game is running. /s</li> <li>No seriously, the clock isn't accurate while the game is running, but it should be somewhat accurately calculating the time since the last playtime.</li> <li>Lots of finicky floating errors and overflows to keep in mind with while setting up the numbers.</li> <li>Define your own &quot;resources&quot; (hunger, gold, joy, etc...) with their own min, max and starting values. As well as the tickrate and tickamount (negative or positive!)</li> <li>Uses cartdata </li> </ul> <p>Obviously I welcome any and all optimizations. Actually... considering the token count I <em>should beg</em> for them, but whatever, date calculations are hard, yo!</p> https://www.lexaloffle.com/bbs/?tid=29720 https://www.lexaloffle.com/bbs/?tid=29720 Sat, 29 Jul 2017 08:56:24 UTC 8x8 Sprites that took an hour to draw <p>You know that feeling when you only have 8x8 pixels to draw something, and it takes an hour to get it right?</p> <p>Let's make that feeling worse by posting our sprite in this thread, without context, and then despair when none of the other users can figure out what it is.</p> <p>I'll shamelessly start it off with this thing... </p> <p><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;"></p> <img style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/24146/PICO-8_0.png" width=384 height=384 alt="" /> <p></div></div></div></p> <p>And no, it's not pikachu... :(</p> https://www.lexaloffle.com/bbs/?tid=29271 https://www.lexaloffle.com/bbs/?tid=29271 Thu, 04 May 2017 13:08:29 UTC Token Visualizer <p>Hey, first of all, excuse my poor photoshopping (Using Krita on Linux, terrible tool. No idea why I'm not using Gimp).</p> <p>But anyways... What if, while in the code editor, you could hold down a key (maybe ALT?) and it would turn all tokens into coloured blobs. So you could instantly see where and how most of them are used up.</p> <p>Something like this:</p> <img style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/24146/PICO-8_1.png" width=768 height=384 alt="" /> <p>Additionally, maybe instead of being randomly coloured, certain tokens (such as keywords, variable names, separators, etc...) could have a dedicated colour to them.</p> <p>Now, disclaimer... I don't actually know how the tokens work exactly, I just coloured in the tokens as I felt.</p> <p>The token blocks themselves, should also look more like this, but in pico8 colour palette:</p> <img style="margin-bottom:16px" border=0 src="http://www.toxiclab.org/img/200611116_Img3.gif" alt="" /> <p>but I think the image gets the point across even with my terrible photoshopping.</p> https://www.lexaloffle.com/bbs/?tid=29270 https://www.lexaloffle.com/bbs/?tid=29270 Thu, 04 May 2017 12:03:10 UTC How embarassed should I be about this function? <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> increment_second = function(this) this.second = (this.second + 1) % 60 if this.second == 0 then this.minute = (this.minute + 1) % 60 if this.minute == 0 then this.hour = (this.hour + 1) % 24 if this.hour == 0 then this.day = this.day + 1 if this.day &gt; days_in_a_month[this.month] or this.day &gt; 29 and this.month == 2 and this.year % 4 == 0 then this.day = 1 this.month = (this.month % 12) + 1 if this.month == 1 then this.year += 1 end end end 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> <p>I'm creating a tamagotchi kit, and since os.clock is no longer part of the API, I figured it'd be okay if the user would have to type his/her current time at every launch.</p> <p>Currently at 1500 tokens, with a datetime input screen, an &quot;are you sure this is correct?&quot; screen, a class for stats/resources (ie. health, hunger, random_event_countdown, etc...), a class for date calculations, and plenty of overflow control for both classes.</p> <p>Nearly done, but before I submit it, I'd like to inquire if there's a possible improvement to this eye sore of a function? </p> https://www.lexaloffle.com/bbs/?tid=29262 https://www.lexaloffle.com/bbs/?tid=29262 Mon, 01 May 2017 17:00:29 UTC Networking using highscores <p>I wonder, once the highscores feature comes into play, will it be possible to do some extremely limited networking using it? Say for example, instead of using the highscore number as a highscore number, but instead as data. I imagine it wouldn't allow for any real-time networking, but I think it's worth keeping in mind that the highscore number could be used for other things than scores. Maybe showing what decisions other players took, like a Telltale game. Or gravestones of players who have passed away and where. </p> https://www.lexaloffle.com/bbs/?tid=29239 https://www.lexaloffle.com/bbs/?tid=29239 Fri, 28 Apr 2017 15:34:09 UTC Fatigue <p> <table><tr><td> <a href="/bbs/?pid=39874#p"> <img src="/bbs/thumbs/pico39878.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=39874#p"> Fatigue 1.2</a><br><br> by <a href="/bbs/?uid=24146"> bekey</a> <br><br><br> <a href="/bbs/?pid=39874#p"> [Click to Play]</a> </td></tr></table> </p> <p>My Ludum Dare 38 game.</p> <p>This is my first pico-8 game, and as such I had to cut about 3/4 of the intended features.<br /> Please excuse the abhorrent collision detection and the rushed pixel-art.</p> <p>If you do play and finish it, I hope you find that the slow walking speed wasn't too much of a waste of your time.</p> <p>Protip: Try to avoid facing another object while dropping your current object.</p> <p>Controls:</p> <p>Arrow keys to move.<br /> X/Y/Z to start pulling the item in front of you.<br /> X/Y/Z to stop pulling.</p> https://www.lexaloffle.com/bbs/?tid=29218 https://www.lexaloffle.com/bbs/?tid=29218 Sun, 23 Apr 2017 15:24:13 UTC