p01 [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=28958 DOOMY a tiny FPS in 1024 bytes <h1>DOOMY (overdue Pico-1k jam)</h1> <p> <table><tr><td> <a href="/bbs/?pid=98580#p"> <img src="/bbs/thumbs/pico8_doomy-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=98580#p"> doomy</a><br><br> by <a href="/bbs/?uid=28958"> p01</a> <br><br><br> <a href="/bbs/?pid=98580#p"> [Click to Play]</a> </td></tr></table> </p> <p>DOOMY, a tiny first person shooter in 1024 bytes, with collision detection, arbitrary walls, texture w. fog, sound effects, a couple of baddies and a death screen πŸ‘ΉπŸ‘ΊπŸ’₯</p> <h3>Controls &amp; Goal</h3> <p>Move around with the Left, Right and Up arrow keys. Shoot with X or C.<br /> You start with 10 health points, and need to shoot as many baddies until they get you good!</p> <h2>Inspiration</h2> <p>Seeing great and cute entries closing Pico-1k jam was inspiring. That's when I got an idea: &quot;all things SSPR&quot; to balance this cuteness with DOOMY pointless violence and big pixels. </p> <h2>Technical details</h2> <p>In a nutshell DOOMY is a rotozoom (the effect you get when rotating and zooming an image) laid down flat and rendered with scaled sprites.</p> <h3>Setup</h3> <p>The textures, sprites, and the base of the level are rendered as a group of rectfill and text in the first 3 lines of code, with first two textures of 8x8 for the walls, then 2 baddies, and finally the base of the level.</p> <p>In the following 4 lines, the base of the level is expanded and some diagonal walls are added.</p> <p>Every &quot;thing&quot; in DOOMY goes in the β–₯ object which contains the x,y,t,w properties for the x,y position of the thing, it's texture index t and width w (nil or 1 for walls, 8 for the baddies)</p> <h3>Game loop</h3> <p>In the game loop the things in β–₯ are rotated and moved into another object, 🐱, if they are in the visibility fustrum. The baddies move erratically towards the player.</p> <p>The things in 🐱 are then sorted and rendered back to front, if one of these thing is large, it means it's a baddy and we render a shadow with an ovalfill</p> <h3>Collisions and baddies hit</h3> <p>For the collision detection, we check the distance of the last thing we drew. Blocking the way forward if it's very close.</p> <p>We check the color of the pixel under the crosshair to know if it's a baddy. If you shoot we play a noise, increase the score and respawn it at a random location. Otherwise there is a 10% chance it will shoot you with a red flash and some noise.</p> <p>You know the baddies are bad because they keep shooting you even when you're down!</p> <h3>Source code</h3> <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>u=.2v=1.5a=0p=0h=10β–₯={}r=rectfill f=add cls()r(0,0,15,7,13)f(β–₯,{x=3,y=4,t=24,w=8})?&quot;#%$3ᢜ9μ›ƒαΆœ8][βŒ‚&quot;,r(0,1,15,6,5),3,3 β—†=pget?&quot;β˜…%= ᢜ8🐱z}&quot;,f(β–₯,{x=4,y=5,t=16,w=8}),1,6 memcpy(0,6^13,β§—)for y=0,9,1/8do for x=0,9,1/8do if(β—†(x+32,y)!=β—†(x+31.9,y-.1))f(β–₯,{x=x;y=y;t=(x+y)%2*8})end if(y&lt;2)f(β–₯,{x=2.5+y/2;y=4-y%1+y\1*2;t=y%2*8})end function _draw()cls(1)r(0,60,127,68,5)l=rnd local 🐱,c,s,q,d,w,x,y={},cos(a)*8,sin(a)*8,64 for z in all(β–₯)do x=z.x-u y=z.y-v if(z.w)z.x-=(x/q+l()-β–ˆ)/9z.y-=(y/q+l()-β–ˆ)/9 z.u=y*c-x*s z.v=y*s+x*c if(z.v&lt;48and abs(z.u)&lt;z.v)f(🐱,z)end for i=2,#🐱 do for j=1,i do if(🐱[i].v&gt;🐱[j].v)🐱[i],🐱[j]=🐱[j],🐱[i]end end e=6-2*min(1,h)pal(6,13)for d in all(🐱)do z=80/d.v if(z&gt;4)pal() w=d.w or 1x=q+z*(d.u-w/2)y=q-z*e if(w&gt;1)ovalfill(x,y+z*9,x+z*w*.9,y+z*7,0) sspr(d.t,0,w,8,x,y,z*w+4,z*8)end b=btn()*min(1,h)a+=(b%2-b\2%2)/q if(b&amp;4&gt;0and z&lt;40)u+=c/q v+=s/q ?&quot;ᢜe⁢w⁢tdoomy&quot;,44,4 ?&quot;&hearts;&quot;..h..&quot; β˜…&quot;..p,44,119 c=β—†(q,q)w=&quot;\ai60&quot;?&quot;+&quot;,q,q if(c&gt;7and c&lt;13)then if(b&gt;15)p+=1d=β–₯[c-7]d.x=l(8)d.y=l(8)?w if(l()&lt;.1)pal(1,8,1)h=max(h-1)?w 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> <h3>That's all folks</h3> <p>Hope you enjoy this tiny showdown </p> https://www.lexaloffle.com/bbs/?tid=44970 https://www.lexaloffle.com/bbs/?tid=44970 Wed, 13 Oct 2021 14:55:54 UTC KATAMAR1k (PICO-1k Jam) <h1>KATAMAR1K</h1> <p>An homage to KATAMARI DAMACY for Pico8 in 1021 bytes for the #PICO1k jam</p> <p> <table><tr><td> <a href="/bbs/?pid=98507#p"> <img src="/bbs/thumbs/pico8_katamar1k-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=98507#p"> katamar1k</a><br><br> by <a href="/bbs/?uid=28958"> p01</a> <br><br><br> <a href="/bbs/?pid=98507#p"> [Click to Play]</a> </td></tr></table> </p> <h1>Story</h1> <p>The King of all Cosmos was naughty again. He broke all the stars and sent you, the 5cm Prince, to earth with a Katamari ball to collect things of increasing size to build up a star and fix his mess</p> <h1>Controls</h1> <p>Use the LEFT and RIGHT arrows to steer the little Prince</p> <p>Watch out! Things will fall off your Katamari ball if your try to collect something that is too big</p> <h1>Goal</h1> <p>Collect enough things with your Katamari ball to reach 64cm as fast as possible to please the King of all Cosmos.</p> <p>Post a screenshot of your time on Twitter with the #PICO1k hash tag. Who knows, the King of all Cosmos might like it. </p> <h1>PICO1k jam and technical limits</h1> <p>This game was made for PICO1k jam where the goal is to make a cool game, tool or demo for the PICO8 fantasy console in 1024 bytes maximum without any music or sprites. Everything must be done with 1024 bytes of code.</p> <p>πŸ„<br /> 🌏</p> https://www.lexaloffle.com/bbs/?tid=44950 https://www.lexaloffle.com/bbs/?tid=44950 Mon, 11 Oct 2021 16:01:14 UTC pico_1k_jam_invitation <h1>PICO-1k JAM demo invitation πŸ₯³</h1> <p>Organized by <a href="https://www.lexaloffle.com/bbs/?uid=13822"> @Liquidream</a>, <strong>PICO-1k JAM</strong> invites you all to submit a game, demo or tool for PICO-8 in 1024 characters or less at <a href="https://itch.io/jam/pico-1k">https://itch.io/jam/pico-1k</a> in September 2021. No sprites, no maps, no sfx or music. Just 1024 characters of code.</p> <p>Below is a little demo-invitation by <a href="https://www.lexaloffle.com/bbs/?uid=28958"> <a href="https://www.lexaloffle.com/bbs/?uid=28958"> @p01</a></a> featuring the mandatory starfield, a twister scroller, and a software sound synthesizer generating ~1min of music with 4 channels, and one ton of love for the PICO-8 community in 976 characters (counting the label).</p> <p>Be wild, have a little fun at <strong>PICO-1k JAM</strong></p> <p>&mdash; πŸ’Œ <a href="https://www.lexaloffle.com/bbs/?uid=28958"> <a href="https://www.lexaloffle.com/bbs/?uid=28958"> @p01</a></a></p> <p> <table><tr><td> <a href="/bbs/?pid=96022#p"> <img src="/bbs/thumbs/pico8_pico_1k_jam_invitation-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=96022#p"> pico_1k_jam_invitation</a><br><br> by <a href="/bbs/?uid=28958"> p01</a> <br><br><br> <a href="/bbs/?pid=96022#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=44237 https://www.lexaloffle.com/bbs/?tid=44237 Sun, 15 Aug 2021 09:03:06 UTC Canary <h1>πŸ€πŸŒƒ Canary</h1> <p>Late #pico8 game in ~513 bytes for Tweet Tweet Jam 5</p> <p>Fly like a canary through procedural mine shaft without bumping your little head πŸ¦ΊπŸ”¦</p> <p> <table><tr><td> <a href="/bbs/?pid=84111#p"> <img src="/bbs/thumbs/pico8_ttj5_canary-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=84111#p"> ttj5_canary</a><br><br> by <a href="/bbs/?uid=28958"> p01</a> <br><br><br> <a href="/bbs/?pid=84111#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=40335 https://www.lexaloffle.com/bbs/?tid=40335 Wed, 11 Nov 2020 13:39:00 UTC Katamari Christmassy <p> <table><tr><td> <a href="/bbs/?pid=71186#p"> <img src="/bbs/thumbs/pico8_katamari_christmassy-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=71186#p"> katamari_christmassy</a><br><br> by <a href="/bbs/?uid=28958"> p01</a> <br><br><br> <a href="/bbs/?pid=71186#p"> [Click to Play]</a> </td></tr></table> </p> <h1>Katamari Christmassy</h1> <p>A PICO8+Xmas homage to the <strong>Katamari</strong> series by Namco by <strong>Mathieu <a href="https://www.lexaloffle.com/bbs/?uid=28958"> <a href="https://www.lexaloffle.com/bbs/?uid=28958"> @p01</a></a> Henri</strong> and <strong>Matt <a href="https://twitter.com/gasmanic">@gasmanic</a> Westcott</strong></p> <p>The King of All Cosmos was completely naughty. The stars are all gone and you, the 5cm Prince of All Cosmos, must fix this mess.</p> <h2>How to play</h2> <p>Walk forward with ⬆️, steer with ⬅️ and ➑️<br /> Roll things up with your Katamari ball to build the biggest clump.</p> <p>The King will make a star with it. If it is big enough.</p> <h2>Game modes</h2> <p>Switch between Story and Arcade mode in the Pause menu.</p> <p>Rebuild the Christmas constellation in Story mode to make the King of All Cosmos proud.</p> <p>Have fun in Arcade mode.</p> <h2>Accessibility and photo sensitivity</h2> <p>Some colors flicker at 60fps to make parts of the UI transparent or brighter. Unfortunately this can be quite disturbing for photo sensitive people. </p> <p>The color flicker can be toggled in the Pause menu.</p> <h2>Credits</h2> <p>Code + Visuals: <strong>Mathieu <a href="https://twitter.com/p01"><a href="https://www.lexaloffle.com/bbs/?uid=28958"> <a href="https://www.lexaloffle.com/bbs/?uid=28958"> @p01</a></a></a> Henri</strong><br /> Musics: <strong>Matt <a href="https://twitter.com/gasmanic">@gasmanic</a> Westcott</strong><br /> Original Katamari series: <strong>namco</strong></p> <p>&lt;3</p> https://www.lexaloffle.com/bbs/?tid=36292 https://www.lexaloffle.com/bbs/?tid=36292 Wed, 18 Dec 2019 20:56:35 UTC DIRT*RACING <p> <table><tr><td> <a href="/bbs/?pid=61826#p"> <img src="/bbs/thumbs/pico8_dirt_racing-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=61826#p"> dirt_racing</a><br><br> by <a href="/bbs/?uid=28958"> p01</a> <br><br><br> <a href="/bbs/?pid=61826#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is the standalone version of</p> <h1>DIRT*RACING</h1> <p>The tiny racing game in 425 tokens for #17in1jam by <a href="https://www.lexaloffle.com/bbs/?uid=28958"> @p01</a> and <a href="https://www.lexaloffle.com/bbs/?uid=11292"> @Gruber</a></p> <p>For the purpose of the jam trying to fit 17 games in one cart, the game had very tight constraint.<br /> The whole game takes <strong>425</strong> tokens, 16 sprites, 16 map cells, <strong>4 sfx and 4 music patterns</strong>.</p> <h2>Features</h2> <ul> <li>3 in game sfx for the engine noises and transition between tracks.</li> <li>4 music patterns mixing 3 unique sfx</li> <li>5 tracks</li> <li>Ghost of your previous laps</li> <li>A nice trophy at the end and a sweet Easter egg</li> </ul> <p>Hope you like it, and will soon try the whole #17in1jam cart!<br /> Curious to read any feedback, good, and especially bad.</p> <p>It was really fun to make my first game on PICO8</p> https://www.lexaloffle.com/bbs/?tid=33250 https://www.lexaloffle.com/bbs/?tid=33250 Tue, 12 Feb 2019 23:05:45 UTC IMPICOBLE ROAD <p>A Pico8 homage to IMPOSSIBLE ROAD in 498 bytes for #tweettweetjam, featuring:</p> <p>&#127941; Hi Score!<br /> &#127902;&#65039; 60fps action!!!<br /> &#127950;&#65039; Ever increasing speed!!</p> <p>Hope you like it</p> <p> <table><tr><td> <a href="/bbs/?pid=59064#p"> <img src="/bbs/thumbs/pico59153.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=59064#p"> Untitled</a><br><br> by <a href="/bbs/?uid=28958"> p01</a> <br><br><br> <a href="/bbs/?pid=59064#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=32258 https://www.lexaloffle.com/bbs/?tid=32258 Fri, 16 Nov 2018 07:31:42 UTC Triangle rasterizer benchmark round 3 <p> <table><tr><td> <a href="/bbs/?pid=53941#p"> <img src="/bbs/thumbs/pico53994.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=53941#p"> Triangle rasterizer benchmark round 3</a><br><br> by <a href="/bbs/?uid=28958"> p01</a> <br><br><br> <a href="/bbs/?pid=53941#p"> [Click to Play]</a> </td></tr></table> </p> <p>I am still very new to PICO-8 and saw a few games rendered with polygons.<br /> This lead me to the <a href="https://www.lexaloffle.com/bbs/?tid=28317">Trifill Thunderdome</a> benchmark by <strong>Musurca</strong>.</p> <p>One thing this benchmark didn't show was the number of tokens for each method which is an important detail considering the limitations of the platform.</p> <p>Also, I wrote two triangle rasterizers in <strong>163</strong> and <strong>335</strong> tokens respectively which perform pretty decently. They might be an acceptable alternative to <strong>ElectricGryphon</strong>'s super fast triangle rasterizer if you need an extra 2-400 tokens. If you don't, by all mean use his. It is the fastest one I found, and by a good margin!</p> <p><em><strong>Update 20180706</strong>: Added the possibility to switch rasterizer and turn the test triangle with the arrow keys. This allows to compare rasterizers at a normal pace. Updated EG's rasterizer to the latest he posted in the previous thread and added the one from <a href="https://www.lexaloffle.com/bbs/?pid=32574&amp;amp;tid=28077">Gryphon 3D Engine Library v2</a> only modified to use normal color() and fillp().</p> <p><strong>Update 20180708</strong>: Added a fill pattern and a toggle for the results and control wireframe.</em></p> <p>Hope this helps,</p> https://www.lexaloffle.com/bbs/?tid=31478 https://www.lexaloffle.com/bbs/?tid=31478 Wed, 04 Jul 2018 16:42:34 UTC PICO&#9834;HERO musical tweetcart <p> <table><tr><td> <a href="/bbs/?pid=53885#p"> <img src="/bbs/thumbs/pico53887.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=53885#p"> PICO&#9834;HERO musical tweetcart</a><br><br> by <a href="/bbs/?uid=28958"> p01</a> <br><br><br> <a href="/bbs/?pid=53885#p"> [Click to Play]</a> </td></tr></table> </p> <p>Hi there. I made a few tweetcarts recently and thought a PICO&#9834;HERO in 280 bytes would be sweet, so here it is. </p> <p>As you can hear, it's the first time I play with sfx :\</p> <p>The game features 60 uniques &quot;tunes&quot;.<br /> Press the arrows keys to the beat until the end of your tune.</p> <p>You can see your score at the top of the screen.<br /> Followed by the title of the game and the number of the tune,<br /> Then the music pattern.</p> <p>Hope you like it,</p> https://www.lexaloffle.com/bbs/?tid=31465 https://www.lexaloffle.com/bbs/?tid=31465 Sat, 30 Jun 2018 18:49:31 UTC