Spaz48 [Lexaloffle Blog Feed] tline() bugs <p>tline() seems to behave differently than line(), and the default delta seems to not work. It seems that the ending y coordinate is off by one pixel, but I'm not sure if there's more wrong than just that. I would expect line() and tline() to make the same line, though. On top of that, it seems that it's using 0,0 for the default delta instead of 1/8,0 like the manual specifies. </p> <p>For example, with this tile at 0,0 on the map:<br /> <table><tr><td width=32> <img src="" width=32 height=32> </td> <td valign=bottom> <a style="cursor:pointer;font-size:8pt" onclick=' var el = document.getElementById("gfxcode_33914_3"); if ( == "none") = ""; else = "none"; microAjax("", function (retdata){ var el = document.getElementById("gfxcode_33914_3"); el.innerHTML = retdata; el.focus();; } ); '> [8x8]</a> </td></tr> <tr><td colspan=2> <textarea rows=3 class=lexinput id="gfxcode_33914_3" style="width:640px;background-color:#fed;display:none;overflow:hidden; font-size:6pt;"></textarea> </td> </tr> </table> <br /> Running</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> tline(32,32,39,35,0,0) line(32,32,39,35,7)</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Results in:<br /> <table><tr><td width=32> <img src="" width=32 height=32> </td> <td valign=bottom> <a style="cursor:pointer;font-size:8pt" onclick=' var el = document.getElementById("gfxcode_33914_0"); if ( == "none") = ""; else = "none"; microAjax("", function (retdata){ var el = document.getElementById("gfxcode_33914_0"); el.innerHTML = retdata; el.focus();; } ); '> [8x8]</a> </td></tr> <tr><td colspan=2> <textarea rows=3 class=lexinput id="gfxcode_33914_0" style="width:640px;background-color:#fed;display:none;overflow:hidden; font-size:6pt;"></textarea> </td> </tr> </table> <br /> Shifting them apart results in this:<br /> <table><tr><td width=32> <img src="" width=32 height=32> </td> <td valign=bottom> <a style="cursor:pointer;font-size:8pt" onclick=' var el = document.getElementById("gfxcode_33914_1"); if ( == "none") = ""; else = "none"; microAjax("", function (retdata){ var el = document.getElementById("gfxcode_33914_1"); el.innerHTML = retdata; el.focus();; } ); '> [8x8]</a> </td></tr> <tr><td colspan=2> <textarea rows=3 class=lexinput id="gfxcode_33914_1" style="width:640px;background-color:#fed;display:none;overflow:hidden; font-size:6pt;"></textarea> </td> </tr> </table> <br /> When the expected result should be:<br /> <table><tr><td width=32> <img src="" width=32 height=32> </td> <td valign=bottom> <a style="cursor:pointer;font-size:8pt" onclick=' var el = document.getElementById("gfxcode_33914_2"); if ( == "none") = ""; else = "none"; microAjax("", function (retdata){ var el = document.getElementById("gfxcode_33914_2"); el.innerHTML = retdata; el.focus();; } ); '> [8x8]</a> </td></tr> <tr><td colspan=2> <textarea rows=3 class=lexinput id="gfxcode_33914_2" style="width:640px;background-color:#fed;display:none;overflow:hidden; font-size:6pt;"></textarea> </td> </tr> </table> <br /> You can get the expected tline() result instead with <span style=" display:inline-block; background-color:#eee; padding:2px; margin: 4px; padding-left: 8px; padding-right: 8px; color:#222">tline(32,32,39,36,0,0,1/8,0)</p> Sun, 19 Apr 2020 01:18:05 UTC Untitled Fox Platformer (WIP) <p> <table><tr><td> <a href="/bbs/?pid=72883#p"> <img src="/bbs/thumbs/pico8_spaz48_fox-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=72883#p"> spaz48_fox</a><br><br> by <a href="/bbs/?uid=33914"> Spaz48</a> <br><br><br> <a href="/bbs/?pid=72883#p"> [Click to Play]</a> </td></tr></table> </p> <p>So, here's the main thing I've been working on since I posted VVVVVV Moonfall. I've been a lot more relaxed with it, and I've been taking measures to not write total spaghetti code, and some of it's even commented. In all, I'm really proud of how this has been coming together. The camera needs work, as does some little aspects of the movement, and some things need tweaking, but I'll get to all of that eventually. </p> <p>For now, I've decided to post this mainly because I'm kind of exhausted creatively, and don't really know where to go next. So I'm gonna be taking a break from it, and probably from Pico-8 too. (making carts, at least.) I've been spending almost all of my free time lately on it, and I feel like that's kind of been sucking the life out of me, among other things. Anyway, enough about me.</p> <p>So I'm not sure what to call this, and I'm not sure where it's going either. I've had a few ideas, but it all needs more thought. It was first going to be an attempt at a 2D collectathon, then I wanted it to be a metroidvania, now I've just kind of accepted I don't really know where it's going and I'm hoping I'll think of something while I'm taking a break from it. Really, I've been most focused on making everything feel good and getting the mechanics I've already decided on feeling as solid as possible. Plus probably more polish than I should be trying to put in at this point, but I'm a bit of a perfectionist and that's kinda just how I am sometimes. Also, the background is a placeholder, so don't worry about it maybe looking a little...familiar. </p> <p>I started this I think about a day or two after submitting Moonfall, and this uses the collision code from that, but nothing else. Everything here is my own code, from the parallax scrolling to the particle system, anything that isn't Pico-8 default here is my own, besides two lines for a cpu and memory counter I took from the wiki. The spritework is also my own, and so is the music. I'm sure I don't need to say all of this, but I'm just making sure.</p> <p>Anyway, there isn't exactly much content here, as it's just a test map with some placeholder enemies that don't even move, but I'm really happy with what I've got so far and I hope you like it, too.</p> <p>Controls: </p> <ul> <li>Z/O: Jump </li> <li>Z/O in air: Double jump</li> <li>Z/O + Left or Right when against a wall: Wall Jump</li> <li>X: Attack</li> </ul> Fri, 07 Feb 2020 18:33:47 UTC Tetyis (Tetris clone) <p> <table><tr><td> <a href="/bbs/?pid=72731#p"> <img src="/bbs/thumbs/pico8_spaz48_tetyis-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=72731#p"> Tetyis</a><br><br> by <a href="/bbs/?uid=33914"> Spaz48</a> <br><br><br> <a href="/bbs/?pid=72731#p"> [Click to Play]</a> </td></tr></table> </p> <p>(Update 1.01: Fixed a bug that caused an out of memory error with particles disabled. Thanks to <a href=""> @dw817</a> for finding it!)</p> <p>So, here it is, my first ever fully completed cart. I have a real bad habit of starting lots of things and never finishing them, and this was destined to be just another one of those things. I started work on this about a month or two ago, and did most of the work back then. I decided I needed a bit of a break from my current project and thought, hey, why don't I go back and finish this?</p> <p>I've learned a <em>lot</em> since then, and generally improved a bunch, so most of this code is a mess, and doesn't use things it really should like objects, but, everything functions well enough at least. It's super unoptimized though, mostly because I was under the assumption there was no CPU limitations in Pico-8, and going back to finish it up, I didn't really bother fixing that. The particle system is my own, written for the main cart I've been working on, but the background previously was a stolen tweetcart (the function was even called &quot;stolentweetcart()&quot;) I was using as a placeholder. It was distracting anyway, so I replaced it with the particles and used them to make a few other things nicer as well. </p> <p>The main goal here was to make it compliant to the 2009 Tetris guideline (a big document the Tetris company uses that says exactly how a Tetris game should be made) though I disregarded that going back to it, so it's halfway or so there. Also, SRS isn't implemented properly, it's good enough but it's not perfect, and the title is a typo I thought was funny so I rolled with it.</p> <p>Anyway, enough of my rambling, hope you enjoy!</p> <p>Controls:</p> <ul> <li>Z, X: Rotate</li> <li>Z+X: Hold</li> <li>Up: Hard drop</li> <li>Down: Soft drop</li> <li>Left, Right: Move</li> </ul> Tue, 04 Feb 2020 21:05:45 UTC VVVVVV: Moonfall <p> <table><tr><td> <a href="/bbs/?pid=72294#p"> <img src="/bbs/thumbs/pico8_spaz48_vvvvvvmoonfall_08-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=72294#p"> VVVVVV Moonfall 0.8</a><br><br> by <a href="/bbs/?uid=33914"> Spaz48</a> <br><br><br> <a href="/bbs/?pid=72294#p"> [Click to Play]</a> </td></tr></table> </p> <p>Okay so, first off, hello! I'm new here. I'm also bad with publicly posting stuff like this, let alone in a community i'm new to, so sorry if I made any mistakes.</p> <p>Second, this was made for the &quot;VVVVVV's 10th birthday eVVVVVVent!&quot; jam as a tribute to VVVVVV and it'll be up there with a more thorough explanation soon after I post this. <a href=""></a> The jam deadline is in a few days and that started to stress me out a little so I just decided to submit it as-is and stop worrying about it.</p> <p>Third, this is a mess. I'm not too competent when it comes to coding and I rarely ever comment anything unless I'm commenting out code. I'm sure it's not quite as bad as I think it is, but regardless I know under the hood it's a bit of a disaster. This is unfinished, and probably will never be finished, but who knows if I'll decide to come back to it or not.</p> <p>It goes up to Space Station 1 and a few rooms of the Lab, then some miscellaneous rooms showing off other things I had done as well as a Veni, Vidi, Vici knockoff. Constructive criticism is appreciated although I'm aware of a lot of its shortcomings already. Hopefully, at least the bit of it that's finished is good.</p> Mon, 27 Jan 2020 15:32:04 UTC