jo560hs [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=45958 mapcompress <p> <table><tr><td> <a href="/bbs/?pid=84531#p"> <img src="/bbs/thumbs/pico8_mapcompress-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=84531#p"> mapcompress</a><br><br> by <a href="/bbs/?uid=45958"> jo560hs</a> <br><br><br> <a href="/bbs/?pid=84531#p"> [Click to Play]</a> </td></tr></table> <br /> So you know how half of the sprite sheet is shared with the map? Because of that, usually I use the half for the map, one spritesheet tab for sprites, and one tab for map tiles. Well, I just figured out that in doing so I dont use 1/4th of the tile data. This program I made uses the 1/4th tile data to flip the map tile. I will be making a tool to use this easily soon.</p> <p>Code to import:</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>function _map(x,y,sx,sy,celw,celh,layer) local x=x local y=y local celw=celw local celh=celh local layer=layer --not used yet if x==nil then x=0 end if y==nil then y=0 end local sx=x local sy=y if celw==nil then celw=16 end if celh==nil then celh=16 end for i=0,celw*celh do tile=mget(x,y) if tile&lt;64 then --first tab flipx=false flipy=false tile+=64 elseif tile&gt;63 and tile&lt;128 then --second tab flipx=true flipy=false elseif tile&gt;127 and tile&lt;192 then --third tab flipx=false flipy=true tile-=64 else --fourth tab flipx=true flipy=true tile-=128 end spr(tile,x*8,y*8,1,1,flipx,flipy) x+=1 if x==sx+16 then x=0 y+=1 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>The code uses the 2nd spritesheet tab for the tiles.<br /> Call _map() whenever you want to use the function in your game.</p> https://www.lexaloffle.com/bbs/?tid=40509 https://www.lexaloffle.com/bbs/?tid=40509 Fri, 20 Nov 2020 15:36:49 UTC Untitled <p> <table><tr><td> <a href="/bbs/?pid=81447#p"> <img src="/bbs/thumbs/pico8_no_jump-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=81447#p"> no_jump</a><br><br> by <a href="/bbs/?uid=45958"> jo560hs</a> <br><br><br> <a href="/bbs/?pid=81447#p"> [Click to Play]</a> </td></tr></table> <br /> Remix of Noel Berry and Matt Thorson's Celeste: <a href="https://www.lexaloffle.com/bbs/?tid=2145&amp;pid=11722">https://www.lexaloffle.com/bbs/?tid=2145&amp;pid=11722</a></p> <h1>You can't jump</h1> <p>Your legs are broken, and you are tasked to climb a mountain. All you can do is dash through the air and jump off of walls. Can you reach the summit?</p> <p>Next up: a higher effort celeste remix</p> https://www.lexaloffle.com/bbs/?tid=39466 https://www.lexaloffle.com/bbs/?tid=39466 Wed, 02 Sep 2020 16:53:07 UTC I want more enemies <p>I'm trying to create a game where there are multiple enemies on the screen at once, but I can't find an easy way to store the enemys' position other than to create a million variables. Is there any way to avoid this? </p> https://www.lexaloffle.com/bbs/?tid=39020 https://www.lexaloffle.com/bbs/?tid=39020 Wed, 29 Jul 2020 22:33:53 UTC My First Project <p> <table><tr><td> <a href="/bbs/?pid=79825#p"> <img src="/bbs/thumbs/pico8_zuyjakime-3.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=79825#p"> zuyjakime</a><br><br> by <a href="/bbs/?uid=45958"> jo560hs</a> <br><br><br> <a href="/bbs/?pid=79825#p"> [Click to Play]</a> </td></tr></table> <br /> <table><tr><td> <a href="/bbs/?pid=79825#p"> <img src="/bbs/thumbs/pico8_zuyjakime-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=79825#p"> zuyjakime</a><br><br> by <a href="/bbs/?uid=45958"> jo560hs</a> <br><br><br> <a href="/bbs/?pid=79825#p"> [Click to Play]</a> </td></tr></table> </p> <h2>im new dont judge me</h2> <h3>So this is my first project, im going to create something else now, this was a test.</h3> https://www.lexaloffle.com/bbs/?tid=38951 https://www.lexaloffle.com/bbs/?tid=38951 Fri, 24 Jul 2020 02:53:06 UTC