Hoxfire [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=93483 Halved Resolution Game <h1>Slashed Res</h1> <p>This is something I'm actively working on.<br /> I am trying to make a shmup or just a graphics library that I can use for other projects.</p> <p>the movement is what you'd expect and (❎)(🅾️) go between the different quarters of a sprite.</p> <p> <table><tr><td> <a href="/bbs/?pid=155148#p"> <img src="/bbs/thumbs/pico8_quarts-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=155148#p"> quarts</a><br><br> by <a href="/bbs/?uid=93483"> Hoxfire</a> <br><br><br> <a href="/bbs/?pid=155148#p"> [Click to Play]</a> </td></tr></table> </p> <p>This code snippet is the method I made to quarter sprites.</p> <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>--show a quarter of a sprite --only works for the first row (lazy) function qspr(sn,qn,x,y) local a=0 if(qn&gt;2) a=4 sspr(sn*8 + ((qn+1)%2 * 4),a,4,4,x,y) 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>This is the placeholder/guide sprite that I used to show what quarter you're on<br /> <table><tr><td width=32> <img src="https://www.lexaloffle.com/bbs/gfxc/93483_0.png" width=32 height=32> </td> <td valign=bottom> <a style="cursor:pointer;font-size:8pt" onclick=' var el = document.getElementById("gfxcode_93483_0"); if (el.style.display == "none") el.style.display = ""; else el.style.display = "none"; microAjax("https://www.lexaloffle.com/bbs/gfxc/93483_0.txt", function (retdata){ var el = document.getElementById("gfxcode_93483_0"); el.innerHTML = retdata; el.focus(); el.select(); } ); '> [8x8]</a> </td></tr> <tr><td colspan=2> <textarea rows=3 class=lexinput id="gfxcode_93483_0" style="width:640px;background-color:#fed;display:none;overflow:hidden; font-size:6pt;"></textarea> </td> </tr> </table> </p> <p>I've been struggling with collision but one of my ideas is to use the flags as a bit value.<br /> Because each 8x8 sprite for the background could have 2^4 possible combinations of quarters.</p> <p>If anyone has a better idea I would be very grateful cause I don't wanna have to use binary if I can help it.</p> https://www.lexaloffle.com/bbs/?tid=144529 https://www.lexaloffle.com/bbs/?tid=144529 Tue, 01 Oct 2024 20:07:09 UTC An Old Song <p>This is a very old project that I'm just gonna count as finished<br /> <table><tr><td> <a href="/bbs/?pid=154913#p"> <img src="/bbs/thumbs/pico8_fajepuriwo-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=154913#p"> fajepuriwo</a><br><br> by <a href="/bbs/?uid=93483"> Hoxfire</a> <br><br><br> <a href="/bbs/?pid=154913#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=144453 https://www.lexaloffle.com/bbs/?tid=144453 Fri, 27 Sep 2024 21:27:39 UTC