CoffeeBat [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=50382 Bitdraw - Drawing tool in under 600 characters! <p>Heya! So, the new one-off character feature added in 0.2.4 inspired me to write a drawing tool that exported to compatible strings in the smallest size I could, as of now, the code itself is only 520 characters!<br /> (Minor warning: clipboard saving seems to be incorrect through the html export, I recommend copying the code and running it locally)<br /> <table><tr><td> <a href="/bbs/?pid=101562#p"> <img src="/bbs/thumbs/pico8_bitdraw-3.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=101562#p"> Bitdraw!</a><br><br> by <a href="/bbs/?uid=50382"> CoffeeBat</a> <br><br><br> <a href="/bbs/?pid=101562#p"> [Click to Play]</a> </td></tr></table> </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>h=32s=stat::_::?&quot;⁶t⁶wbitdraw!&quot;,34,8 a=8+(s(h)/8)-4b=(s(33)/8)-4j=ord?&quot;\^.&sup1;&sup3;⁷ᶠ゜?⁷⁸&quot;,s(h),s(33),0 ?&quot;⁶1⁶cd⁶!5f2d&sup1;&quot;,7 rect(h,h,96,96)sspr(8,0,8,8,h,h,64,64)if(s(34)&amp;1!=0)sset(a,b,7) if(s(34)&amp;2!=0)sset(a,b,0) if btnp(❎)then d=&quot;&quot;for y=0,7do k=0for x=8,15do k|=(sget(x,y)&amp;1)&lt;&lt;x-8end d..=chr(k)end o=&quot;&quot;for i=1,#d do c=sub(d,i,i)f=j(d,i+1)g=(f and f&gt;=48and f&lt;=57)and&quot;00&quot;or&quot;&quot;v=c if(c==&quot;\&quot;&quot;)v=&quot;\\\&quot;&quot; if(c==&quot;\\&quot;)v=&quot;\\\\&quot; if(j(c)==0)v=&quot;\\&quot;..g..&quot;0&quot; if(j(c)==10)v=&quot;\\n&quot; if(j(c)==13)v=&quot;\\r&quot; o..=v end printh(o,&quot;@clip&quot;)?&quot;⁷ceg&quot; end goto _</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Controls:</p> <ul> <li>Left Click: Draws inside the white rectangle</li> <li>Right Click: Erases pixels in the rectangle</li> <li>❎: Copies your drawing to the clipboard alongside making a small noise to notify you</li> </ul> <p>To then use your drawing, you need to use the <code>\^.</code> control code followed by your string:</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>print(&quot;\^.~▒しし▒し▥~&quot;) -- Prints a smiley block ?&quot;\^.~▒しし▒し▥~&quot; -- Short-hand version</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Feel free to elaborate on this tool or minify the code even further!</p> https://www.lexaloffle.com/bbs/?tid=45578 https://www.lexaloffle.com/bbs/?tid=45578 Sun, 05 Dec 2021 19:28:48 UTC P8SCII Bug - Dotty mode's &quot;replaced&quot; <p>Hi, so with the new Pico-8 update (0.2.4) I've been messing around with some of the new features and specially P8SCII, as of now I found something pretty weird, the new one-off character control code (<code>\^.</code>) seems to use the same control code as dotty mode used to, I noticed this when I ran the Impossible Mission cart, which has a corrupted title now due to Pico-8 treating most of the string as 1-bit character data.<br /> <table><tr><td> <a href="/bbs/?pid=88937#p"> <img src="/bbs/thumbs/pico8_impossible-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=88937#p"> Impossible Mission R.T.</a><br><br> by <a href="/bbs/?uid=23375"> carlc27843</a> <br><br><br> <a href="/bbs/?pid=88937#p"> [Click to Play]</a> </td></tr></table> </p> <p>I don't know if this is was done on purpose since it's still mentioned in the manual ALONGSIDE the new one off character control code, maybe Zep forgot it was already in use or he changed it to another control code without adding it to the manual? If this has been documented before or I'm doing something wrong please tell me.</p> https://www.lexaloffle.com/bbs/?tid=45575 https://www.lexaloffle.com/bbs/?tid=45575 Sun, 05 Dec 2021 17:52:19 UTC Warp sprite functions! <p> <table><tr><td> <a href="/bbs/?pid=90472#p"> <img src="/bbs/thumbs/pico8_warpspr-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=90472#p"> warpspr</a><br><br> by <a href="/bbs/?uid=50382"> CoffeeBat</a> <br><br><br> <a href="/bbs/?pid=90472#p"> [Click to Play]</a> </td></tr></table> <br /> Hi! I decided to try out recreating a effect used a lot during the snes-genesis era, a warping sprite effect, it uses a little bit more cpu than what sspr would use and it doesn't support flipping vertically due to how the code warps the sprite, it comes in both spr and sspr flavors for people who are used to either of them, enjoy!</p> <p>Also big thanks to Merwok and FReDs72 for giving me feedback and tips on how to make the function faster</p> https://www.lexaloffle.com/bbs/?tid=42453 https://www.lexaloffle.com/bbs/?tid=42453 Tue, 13 Apr 2021 15:35:01 UTC #Include from subfolders? <p>Hi, I'm trying to write a game in a very clean way instead of cramming multiple copies of the same code on multiple carts, most of this is solved with #include but for what I've tried, you can't do include from subfolders, what I mean is that for example, if I have a cart on a subfolder called &quot;font&quot; but wanna include functions from a cart located on the parent folder, something like<br /> <code>#include ../cart_with_functions.p8</code></p> <p>won't work, is this even possible to do with include or am I just out of luck?</p> https://www.lexaloffle.com/bbs/?tid=42190 https://www.lexaloffle.com/bbs/?tid=42190 Sat, 27 Mar 2021 00:22:05 UTC Small cheat code system <p> <table><tr><td> <a href="/bbs/?pid=89350#p"> <img src="/bbs/thumbs/pico8_cheatcodes_cb-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=89350#p"> cheatcodes_cb</a><br><br> by <a href="/bbs/?uid=50382"> CoffeeBat</a> <br><br><br> <a href="/bbs/?pid=89350#p"> [Click to Play]</a> </td></tr></table> <br /> Hi! I wrote this little cheat code function and decided to share it here if anyone wants to put cheat codes on their games, here's how it works:</p> <p>paste all code labeled as requiered onto your cart, this includes:</p> <ul> <li>chsys={}</li> <li>all code on the _update function</li> <li>the add_chsys function</li> </ul> <p>then, to call a cheat code, write it down on a table like this:<br /> <code>konami_code={⬆️,⬆️,⬇️,⬇️,⬅️,➡️,⬅️,➡️}</code></p> <p>and then call the add_chsys function <strong>once</strong> (if you call it on an update function/every frame you'll chug the system):<br /> <code>add_chsys(name_of_your_cheatcode_table,function_to_load_if_it_succeeds)</code></p> <p>So for example if I wanted to make the game stop when the Konami code was detected then I'd put this on my _init function (or any function that only acts once):<br /> <code>add_chsys(konami_code,stop)</code></p> <p>Hope ya enjoy!</p> https://www.lexaloffle.com/bbs/?tid=42126 https://www.lexaloffle.com/bbs/?tid=42126 Mon, 22 Mar 2021 13:52:34 UTC Voo-do - Escape a maniac house! <p> <table><tr><td> <a href="/bbs/?pid=88346#p"> <img src="/bbs/thumbs/pico8_voodocb-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=88346#p"> Voo-do</a><br><br> by <a href="/bbs/?uid=50382"> CoffeeBat</a> <br><br><br> <a href="/bbs/?pid=88346#p"> [Click to Play]</a> </td></tr></table> <br /> Trapped in Ms smith's home, you, Mr. Voo, have to escape the trap filled house with as less life as possible</p> <p>This game was made for the Wowie Jam 3 with the help of many friends!</p> <p>Stuff:</p> <img style="margin-bottom:16px" border=0 src="/media/50382/manual.png" alt="" /> <p>Credits/Special thanks:<br /> -Most of the game and artwork by myself, Coffeebat<br /> -Amazing ingame music by Blameitontherobot<br /> -Poggers logo by Sinclair</p> https://www.lexaloffle.com/bbs/?tid=41824 https://www.lexaloffle.com/bbs/?tid=41824 Mon, 01 Mar 2021 01:47:39 UTC Hell Cat - Save a kitty from the depths of hell! <p> <table><tr><td> <a href="/bbs/?pid=88179#p"> <img src="/bbs/thumbs/pico8_hell_cat_cb-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=88179#p"> Hell Cat</a><br><br> by <a href="/bbs/?uid=50382"> CoffeeBat</a> <br><br><br> <a href="/bbs/?pid=88179#p"> [Click to Play]</a> </td></tr></table> <br /> A small game I made as a way to spend time while the Wowie jam started, Hell Cat is a game where you protect a lil kitty from being burned by the evil habitants of hell!</p> https://www.lexaloffle.com/bbs/?tid=41769 https://www.lexaloffle.com/bbs/?tid=41769 Fri, 26 Feb 2021 00:28:05 UTC Jetpic-08 - A demake of a speccy classic! <p> <table><tr><td> <a href="/bbs/?pid=87931#p"> <img src="/bbs/thumbs/pico8_jetpico8-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=87931#p"> jetpico8</a><br><br> by <a href="/bbs/?uid=50382"> CoffeeBat</a> <br><br><br> <a href="/bbs/?pid=87931#p"> [Click to Play]</a> </td></tr></table> <br /> A carefully crafted Pico-8 demake of Rareware's ZX Spectrum classic, lost in space and with only your blaster to protect yourself, you must collect all pieces of your spaceship, fuel it up and escape as soon as possible</p> <p>Credits/Special thanks:</p> <p>-Main game and most music/graphics by myself, Coffee Bat<br /> -In-game song 3 by the outstanding Blameitontherobot<br /> -Original game by the amazing Ultimate/Rare<br /> -A couple of ideas and the main inspiration to make this game thanks to Asobitech and their amazing Super Jetpak DX </p> https://www.lexaloffle.com/bbs/?tid=41680 https://www.lexaloffle.com/bbs/?tid=41680 Sat, 20 Feb 2021 15:51:25 UTC Robocop ZX/C64/GB cover <p> <table><tr><td> <a href="/bbs/?pid=87081#p"> <img src="/bbs/thumbs/pico8_robocopzx-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=87081#p"> Robocop ZX/C64/GB cover </a><br><br> by <a href="/bbs/?uid=50382"> CoffeeBat</a> <br><br><br> <a href="/bbs/?pid=87081#p"> [Click to Play]</a> </td></tr></table> Made this cover of one of my favorite songs ever, the robocop game theme by Johnathan Dunn (You may also know it as the ariston commercial song or from Gilbert 3), pretty happy with how it came out</p> https://www.lexaloffle.com/bbs/?tid=41366 https://www.lexaloffle.com/bbs/?tid=41366 Mon, 01 Feb 2021 17:20:29 UTC Pizza Delivery Demastered <p> <table><tr><td> <a href="/bbs/?pid=86721#p"> <img src="/bbs/thumbs/pico8_pizdelivery-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=86721#p"> Pizza Delivery Demastered</a><br><br> by <a href="/bbs/?uid=50382"> CoffeeBat</a> <br><br><br> <a href="/bbs/?pid=86721#p"> [Click to Play]</a> </td></tr></table> <br /> What started as a school project built entirely on a knockoff of an already terrible engine, Pizza Delivery Demastered is the reimagining of that very game. Play as Stanley (Definetly not the guardian from Petscop) and explore the unique 7 levels this game has to offer. Collect pizza, shoot pizza, kill foes. Deliver that pizza! <table><tr><td> <a href="/bbs/?pid=86721#p"> <img src="/bbs/thumbs/pico8_pizdelivery-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=86721#p"> Pizza Delivery Demastered</a><br><br> by <a href="/bbs/?uid=50382"> CoffeeBat</a> <br><br><br> <a href="/bbs/?pid=86721#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=41257 https://www.lexaloffle.com/bbs/?tid=41257 Sat, 23 Jan 2021 18:07:18 UTC Trouble with C64 mini controller on Raspberry Pi Pico-8 <p>Heya uh, just bought a Pico-8 license over on itch a few hours ago and I've been trying to get it to run on my Raspberry Pi 3 b, followed a tutorial on getting it to work on a fresh install of Raspbian and it works great, the problem now is that I wanna use my C64 mini joystick (Which is pretty much THE perfect controller for the system, two buttons, joystick and plenty extra buttons for settings), I got it to work on linux by making a configuration for it with the SDL2 Gamepad Tool and putting that on the sdl controllers file in configs, but making the same in my Rpi did uh, nothing, if anyone can help out with this it'd be amazing, thanks.</p> https://www.lexaloffle.com/bbs/?tid=41153 https://www.lexaloffle.com/bbs/?tid=41153 Tue, 12 Jan 2021 22:06:43 UTC