MBoffin [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=10198 Sprite flags don't reset when using clipboard <p>When using Ctrl-X to cut and paste sprites, the sprite flags remain in the old sprite location. Maybe this is intentional? But it seems like maybe the sprite flags should reset back to a brand new, untouched sprite state when sprites are cut and then pasted elsewhere. Here's a GIF showing the behavior:</p> <img style="" border=0 src="/media/10198/untitled_8_0.gif" alt="" /> https://www.lexaloffle.com/bbs/?tid=47701 https://www.lexaloffle.com/bbs/?tid=47701 Fri, 06 May 2022 20:49:44 UTC Cursor() gets weeeeirrd if the Y value gets too high <p>If you keep increasing the Y value of the cursor, things get weeeeiiird. First, the CPU usage goes out the roof. Second, there's a weird area in the corner that obscures the text. Here's a bit of code that will reproduce the problem:</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 _init() y=110 f=0 end function _draw() cls(1) f+=1 if (f%20==0) y+=1 cursor(0,y) print(&quot;hai&quot;) print(&quot;cursor_x:&quot;..peek(0x5f26)..&quot;\ncursor_y:&quot;..peek(0x5f27)..&quot;\ny:&quot;..y..&quot;\ncpu:&quot;..stat(1),0,0,7) 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>And this is what happens:</p> <img style="" border=0 src="/media/10198/untitled_3_1.gif" alt="" /> https://www.lexaloffle.com/bbs/?tid=42313 https://www.lexaloffle.com/bbs/?tid=42313 Mon, 05 Apr 2021 10:00:03 UTC Simple FPS Controller <p> <table><tr><td> <a href="/bbs/?pid=88033#p"> <img src="/bbs/thumbs/pico8_mb_simplefps-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=88033#p"> Simple FPS Controller</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=88033#p"> [Click to Play]</a> </td></tr></table> </p> <p>I made a <em>very</em> simple FPS controller as a sort of example cart to build off of. This is just to get you going, as opposed to a full framework around which to build a full game. Hopefully it serves as a good jumping off point for someone to make something fun.</p> <p>It uses player 2's ESDF controls for moving around and SPACE for jumping.</p> <img style="" border=0 src="/media/10198/fps_0.gif" alt="" /> <p><strong>EDIT:</strong> Here's a <em>very</em> heavily commented version! Probably <em>way</em> more comments than usually necessary, but it's intended to help you learn, rather than just briefly annotate what's happening in the code.<br /> <table><tr><td> <a href="/bbs/?pid=88033#p"> <img src="/bbs/thumbs/pico8_mb_simplefpscomments-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=88033#p"> Simple FPS Controller - +Comments! -Glyphs!</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=88033#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=41721 https://www.lexaloffle.com/bbs/?tid=41721 Tue, 23 Feb 2021 00:50:27 UTC Dig Deeper - Global Game Jam '21 <p> <table><tr><td> <a href="/bbs/?pid=87544#p"> <img src="/bbs/thumbs/pico8_mb_digdeeper-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=87544#p"> Dig Deeper</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=87544#p"> [Click to Play]</a> </td></tr></table> </p> <h1>Dig Deeper</h1> <p>This was made for Global Game Jam 2021 with <a href="https://www.pigsquad.com">PIGSquad</a>. The theme was Lost &amp; Found.</p> <h2>Controls</h2> <p>⬅️➡️⬆️⬇️ - Movement<br /> 🅾️/❎ - Interact (Z/X or X/C on keyboard!)<br /> ⬅️➡️⬇️+❎ - Dig<br /> ⬆️ - Jump/Jets</p> <h2>Credits</h2> <p>Everything But Music - <a href="https://www.lexaloffle.com/bbs/?uid=10198"> @MBoffin</a><br /> Music - <a href="https://www.lexaloffle.com/bbs/?uid=11292"> @Gruber</a> (from <a href="https://www.lexaloffle.com/bbs/?pid=38442">PICO-8 Tunes Volume 1</a>)</p> <p><strong>Edit:</strong> Forgot to mention, but there is a speedrun mode you can enable/disable from the menu.</p> <p><strong>Edit 2:</strong> Fixed a couple visual errors and balance tweaks. Also made the speedrun mode skip the intro cutscene, and also shows your final time on the very end message screen (after the final cutscene).</p> https://www.lexaloffle.com/bbs/?tid=41526 https://www.lexaloffle.com/bbs/?tid=41526 Fri, 12 Feb 2021 19:50:01 UTC Infinipig: Swine and Coswine <p> <table><tr><td> <a href="/bbs/?pid=86559#p"> <img src="/bbs/thumbs/pico8_infinipig-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=86559#p"> Infinipig: Swine and Coswine</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=86559#p"> [Click to Play]</a> </td></tr></table> </p> <p><em>You are the ghost of Cubepig, looking for a body! Can you find one on your own, or will you have to trade something... precious...</em></p> <p>This game was made in 3 hours by the <a href="https://twitch.tv/PIGSquad">PIGSquad Twitch Chat</a> during a mini-jam on January 17, 2021.</p> https://www.lexaloffle.com/bbs/?tid=41198 https://www.lexaloffle.com/bbs/?tid=41198 Mon, 18 Jan 2021 16:52:15 UTC Feature Request: Copying Error Messages <p><a href="https://www.lexaloffle.com/bbs/?uid=1"> @zep</a>:</p> <p>I teach a LOT of students PICO-8 and lately I've been mostly teaching online classes over Zoom. I'm usually doing this webinar style where I am the presenter and the students are participants. I can't see their screen, but they can see mine and there's a Q&amp;A chat window where they can ask questions and so forth.</p> <p>It would be <em><strong>extremely</strong></em> helpful to be able to copy console error messages to the clipboard. Currently you can hit CTRL-C in the console to copy what's typed into the command prompt, but it would be even more useful, if the prompt was empty, to use CTRL-C to copy the last error generated. Like this:</p> <img style="" border=0 src="/media/10198/PICO-8_0.gif" alt="" /> <p>This would make it <em><strong>so much easier</strong></em> to help students when they run into errors, especially the very young students. If they get an error, they can just hit CTRL-C and paste the error into the Zoom chat. This would also be helpful for people trying to get other live help online, such as from Discord.</p> https://www.lexaloffle.com/bbs/?tid=40385 https://www.lexaloffle.com/bbs/?tid=40385 Fri, 13 Nov 2020 23:11:49 UTC Top-Down Adventure - Voxatron Edition <p> <table><tr><td> <a href="/bbs/?pid=80433#p"> <img src="/bbs/thumbs/vox_mb_topdown_vox-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=80433#p"> Top-Down Adventure - Voxatron Edition</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=80433#p"> [Click to Play]</a> </td></tr></table> </p> <p>I had a lot of fun making this. This is the <a href="https://www.youtube.com/playlist?list=PLdLmU93eWisKpyk1WZywUSYAq5dkCPFIv">top-down adventure game tutorial</a> I made for PICO-8, but re-written to work in Voxatron.</p> <p>I had to make a few changes to how things worked, since it's in 3D, of course, and there are things that Voxatron doesn't have, like a map editor or its associated functions like <strong>mget()</strong> or <strong>mset()</strong>, or other functions like <strong>btnp()</strong> and so forth. But other than those few changes, it's basically the same code as from the tutorial.</p> <p>Feel free to take it and make your own games with it. :)</p> https://www.lexaloffle.com/bbs/?tid=39130 https://www.lexaloffle.com/bbs/?tid=39130 Thu, 06 Aug 2020 22:05:05 UTC Coroutine Question - Why do these work differently? <p>I'm sure this is probably an easy answer, but why do these work differently, where <strong>co_anim1</strong> resets to <strong>nil</strong> after completion, but <strong>co_anim2</strong> does not?</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 _init() co_anim1=cocreate(animate) co_anim2=cocreate(animate) end function _draw() cls() --first method if (co_anim1 and costatus(co_anim1)!=&quot;dead&quot;) then coresume(co_anim1) else co_anim1=nil end --second method, same as first, --but sent to a function to do --the work. resume(co_anim2) print(&quot;co_anim1:&quot;,0,0,5) print(co_anim1,36,0,7) if (co_anim1) print(costatus(co_anim1),75,0,7) print(&quot;co_anim2:&quot;,0,6,5) print(co_anim2,36,6,7) if (co_anim1) print(costatus(co_anim1),75,6,7) end function resume(co) if (co and costatus(co)!=&quot;dead&quot;) then coresume(co) else co=nil end end function animate() local a=rnd() for i=1,40 do circ(64+cos(a)*i,64+sin(a)*i,4,7) yield() 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>This code results in this behavior:</p> <img style="" border=0 src="/media/10198/coresume.p8_1.gif" alt="" /> https://www.lexaloffle.com/bbs/?tid=38122 https://www.lexaloffle.com/bbs/?tid=38122 Mon, 25 May 2020 16:54:43 UTC Syncing PICO-8 installs with Dropbox <p>I use Dropbox to share my PICO-8 carts, screenshots, and gifs between my desktops and laptop. It's extremely useful to use it that way. It means all my carts in are one place, they're all saved to the cloud, and I never have to worry about which carts are on which device. (Another bonus is that I only have to update PICO-8 in one place, Dropbox, when a new version comes out.)</p> <p><strong>The TL;DR is just installing PICO-8 in a folder in Dropbox, and then tweaking the config file on each device to make sure it uses the Dropbox folder as where stores the carts and images (screenshots and gifs).</strong></p> <p>I know there are probably tweaks that could be done to this guide for each person's individual setup, and maybe there are ways to improve what I have set up here, but this has worked for me for half a decade, so.... &macr;\_(ツ)_/&macr; Also, I primarily use Windows machines, so this setup may need tweaking to make this kind of setup work on MacOS or Linux. (It should be effectively the same process, though.)</p> <p>Here are the steps I use:</p> <p>1) I install PICO-8 into a folder on Dropbox. I'll call that folder <strong>D:\Dropbox\pico8</strong> for simplicity. (My actual path to PICO-8 in Dropbox is way longer, has spaces, etc.)</p> <p>2) I run PICO-8 from that folder so that it creates the appropriate files and folders in my <strong>AppData</strong> folder at <strong>C:\Users\Dylan\AppData\Roaming\pico-8</strong></p> <p>3) I create a <strong>carts</strong> and <strong>images</strong> folder in <strong>D:\Dropbox\pico8</strong></p> <p>4) I create a symbolic link folder for both carts and images in the root of my <strong>C:\</strong> drive by opening up a Command Prompt window and typing the following:</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>cd c:\ mklink /d pico8-carts d:\dropbox\pico8\carts mklink /d pico8-images d:\dropbox\pico8\images</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 step requires some explanation, and this step <em>might</em> not be necessary for you, but I do it because my full Dropbox folder path has spaces in it and that seems to not work with PICO-8's config file settings.</p> <p>A symbolic link is a like a fake folder that points to a real folder. So I'm effectively making a fake <strong>c:\pico8-carts</strong> folder that, when you open it, actually goes to <strong>D:\Dropbox\pico8\carts</strong> instead.</p> <p>5) Now I edit my PICO-8 <strong>config.txt</strong> file to use these new folders. Specifically, I ensure that these settings are set in the <strong>config.txt</strong> file:</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>// Location of pico-8's root folder root_path c:\pico8-carts // Desktop for saving screenshots etc. Defaults to $HOME/Desktop desktop_path c:\pico8-images\</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>If the settings aren't already in your <strong>config.txt</strong> file, go ahead and add them. (The lines that start with <strong>//</strong> are just comments and can be ignored if they aren't there or are different.)</p> <p>This makes sure that PICO-8 is looking at the &quot;fake&quot; folders created with <strong>mklink</strong> above for saving carts and screenshots/gifs. While PICO-8 thinks they are being saved to <strong>c:\pico8-carts</strong> and <strong>c:\pico8-images</strong>, they are actually being saved into my Dropbox folder.</p> <p>I then do steps 2-5 on each device. Now, when I save or load a cart, or I save a screenshot or gif, it goes to Dropbox instead and everything stays in sync.</p> <p>I'm happy to answer questions on this process, and if you have suggestions for improving it or changing it, feel free to comment below. Like I said above, there are probably many ways of simplifying this process or making it cleaner (like using command line arguments instead of changing the config.txt, for example) but this works for me and I thought others might benefit from its use.</p> https://www.lexaloffle.com/bbs/?tid=38082 https://www.lexaloffle.com/bbs/?tid=38082 Fri, 22 May 2020 19:15:07 UTC Snowfight - PICO-8 Advent Calendar 2019 Day 4 <p> <table><tr><td> <a href="/bbs/?pid=70560#p"> <img src="/bbs/thumbs/pico8_mb_advent2019-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=70560#p"> Snowfight</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=70560#p"> [Click to Play]</a> </td></tr></table> </p> <p>Remember the classic Shockwave Flash snowball fight game called Snowcraft from 1998? 21 years ago! My entry for this year's <a href="https://www.lexaloffle.com/bbs/?tid=36076">PICO-8 Advent Calendar</a> is a demake of that beloved Flash game. <em>Huge</em> thanks to <a href="https://www.lexaloffle.com/bbs/?uid=11292"> @Gruber</a> for helping with the sound effects!</p> <p>This game uses the mouse. (Sorry, mobile users!)</p> <p>I tried to make this as close to the original as possible. Have fun! :)</p> https://www.lexaloffle.com/bbs/?tid=36107 https://www.lexaloffle.com/bbs/?tid=36107 Wed, 04 Dec 2019 07:32:08 UTC Simple 3D Boids v1.0 <p> <table><tr><td> <a href="/bbs/?pid=69784#p"> <img src="/bbs/thumbs/vox_mb_3dboids-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=69784#p"> Simple 3D Boids v.10</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=69784#p"> [Click to Play]</a> </td></tr></table> </p> <p>❎ to show CPU usage (but I don't think it's accurate?)<br /> 🅾️ to show the follow target</p> <p>This is a quick port of <a href="https://www.lexaloffle.com/bbs/?tid=35879">my PICO-8 boids cart</a>. Nothing fancy, just some boids doing their thing.</p> https://www.lexaloffle.com/bbs/?tid=35884 https://www.lexaloffle.com/bbs/?tid=35884 Sun, 10 Nov 2019 20:30:18 UTC Simple Boids v1.0 <p> <table><tr><td> <a href="/bbs/?pid=69779#p"> <img src="/bbs/thumbs/pico8_mb_boids-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=69779#p"> Simple Boids v1.0</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=69779#p"> [Click to Play]</a> </td></tr></table> </p> <p>❎ to show the follow target<br /> 🅾️ to show CPU usage</p> <p>I've been wanting to do this for a while. This is a simple <a href="http://www.red3d.com/cwr/boids/">boids</a> simulation. Most of the code was adapted from <a href="https://processing.org/examples/flocking.html">Daniel Shiffman's implementation</a> in Processing.</p> <p>Feel free to pick apart the code. Unfortunately, it's not commented much, and I'm absolutely sure there are optimizations that can be done.</p> https://www.lexaloffle.com/bbs/?tid=35879 https://www.lexaloffle.com/bbs/?tid=35879 Sun, 10 Nov 2019 09:13:19 UTC Dialog Text Flow with Coroutines <p> <table><tr><td> <a href="/bbs/?pid=67842#p"> <img src="/bbs/thumbs/pico8_mb_textflow-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=67842#p"> Dialog Text Flow with Coroutines</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=67842#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is a <strong>heavily</strong> commented cart that shows one way of doing flowing dialog text with coroutines. If you have any questions on how it works, feel free to ask. Again, this is <em>one</em> way of doing it. :)</p> https://www.lexaloffle.com/bbs/?tid=35381 https://www.lexaloffle.com/bbs/?tid=35381 Wed, 18 Sep 2019 05:44:37 UTC Top-Down Adventure Game Tutorial <p>I just finished creating a tutorial for making a top-down adventure game in PICO-8. It's 10 relatively short videos (45 minutes for all 10 videos). You don't need any prior experience with PICO-8 to do the tutorial. I have done this tutorial with many, many kids and the games they create with it are always inspiring.</p> <p><strong>UPDATE 8/25: I've added a bonus step that allows you to add text to your game! :D</strong></p> <p><strong>UPDATE 8/27: I added another bonus step that allows you have as many types of tiles as you want. You could use them for treasure, special keys to specific doors, teleporters, quest items, anything you want! 🗝️📜</strong></p> <p>You can find it on itch.io and on YouTube:</p> <p><a href="https://www.youtube.com/playlist?list=PLdLmU93eWisKpyk1WZywUSYAq5dkCPFIv">https://www.youtube.com/playlist?list=PLdLmU93eWisKpyk1WZywUSYAq5dkCPFIv</a></p> <p><a href="https://mboffin.itch.io/pico-8-top-down-adventure-game-tutorial">https://mboffin.itch.io/pico-8-top-down-adventure-game-tutorial</a></p> <p>If you have any questions or need any help, feel free to let me know. I hope you enjoy it! :)</p> <p>My <a href="https://www.lexaloffle.com/bbs/?tid=32417">Happy Challah Days</a> entry for the 2018 PICO-8 Advent Calendar was created using this tutorial as the base code. (I added extra features for the jam, like dialog boxes, quests, and a larger inventory, but its foundation is this tutorial.)</p> <p> <table><tr><td> <a href="/bbs/?pid=59569#p"> <img src="/bbs/thumbs/pico8_advent_challah-11.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=59569#p"> Happy Challah Days!</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=59569#p"> [Click to Play]</a> </td></tr></table> </p> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/mboffin_adventure.gif" width=1 height=1 alt="" /> https://www.lexaloffle.com/bbs/?tid=35135 https://www.lexaloffle.com/bbs/?tid=35135 Wed, 21 Aug 2019 06:45:09 UTC Presentation: Arcade Mechanics <p> <table><tr><td> <a href="/bbs/?pid=65201#p"> <img src="/bbs/thumbs/pico8_mb_arcademechanics-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=65201#p"> Presentation: Arcade Mechanics</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=65201#p"> [Click to Play]</a> </td></tr></table> </p> <p>This was a slide deck I made for a mini workshop I gave on arcade mechanics at a <a href="https://pigsquad.com/summerslowjams">PIGSquad Summer Slow Jams</a> event last night. (Following in the footsteps of <a href="https://www.lexaloffle.com/bbs/?uid=26479"> @nextlevelbanana</a>, I used a Nintendo controller as a clicker. 😄) Feel free to use the code for your own presentations.</p> https://www.lexaloffle.com/bbs/?tid=34518 https://www.lexaloffle.com/bbs/?tid=34518 Fri, 14 Jun 2019 19:01:45 UTC Simple Game <p> <table><tr><td> <a href="/bbs/?pid=64691#p"> <img src="/bbs/thumbs/pico8_mb_simplegame-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=64691#p"> Simple Game</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=64691#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is a <strong>VERY</strong> simple game for very young kids to edit. This was literally coded in an hour, so it's not optimized or super clean code or anything like that. It just works and is easy for kids to edit. :) It's intended for kids to edit the sprites, sounds, and game variables.</p> <p>Enjoy! :)</p> <h1>WHAT TO EDIT</h1> <h2>SPRITES</h2> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/10198/game.p8_002.png" alt="" /> <p><strong>Player</strong> - Sprite 1 and 2 are the player sprite.</p> <p><strong>Pickups</strong> - There are two rows of pickups. The top row gets only <strong>little_points</strong> if they are picked up. The bottom row gets <strong>big_points</strong> if they are picked up.</p> <p><strong>Baddies</strong> - These are sprites 49 and 50 (bottom-left of sprite tab 0).</p> <p><strong>Stars</strong> - The 4 pixels in sprite 48 (bottom-left) define the star colors.</p> <h2>SOUNDS</h2> <p><strong>Sound 0</strong> - When a top row pickup gets picked up.</p> <p><strong>Sound 1</strong> - When a bottom row pickup gets picked up.</p> <p><strong>Sound 2</strong> - When the player hits a baddie.</p> <h2>VARIABLES</h2> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/10198/game.p8_003.png" alt="" /> <p><strong>little_points</strong> - Points gotten from picking up a top-row pickup.</p> <p><strong>big_points</strong> - Points gotten from picking up a bottom-row pickup.</p> <p><strong>game_speed</strong> - How fast the overall game should go.</p> <p><strong>player_speed</strong> - How fast the player moves.</p> <p><strong>animation_speed</strong> - How fast the animations change.</p> <p><strong>seconds_between_pickups</strong> - Self-explanatory.</p> <p><strong>seconds_between_baddies</strong> - Self-explanatory.</p> <p><strong>sky_color</strong> - Self-explanatory.</p> <p><strong>number_of_stars</strong> - Self-explanatory.</p> https://www.lexaloffle.com/bbs/?tid=34312 https://www.lexaloffle.com/bbs/?tid=34312 Thu, 23 May 2019 09:08:40 UTC Water Ripples/Displacement <p><a href="https://www.lexaloffle.com/bbs/?uid=1"> @zep</a>, I've been really curious about the water feature in Voxatron. I love how it looks and how it acts. It just looks and feels so satisfying. But I've had just a hell of a time finding good articles that give me any sort of clue on how to recreate it with any sort of decent performance. (Or even to look as good as yours.) There's the <a href="https://web.archive.org/web/20160418004149/http://freespace.virgin.net/hugo.elias/graphics/x_water.htm">classic water ripple algorithm</a> that <em>so many</em> articles refer back to. But running that on 128^2 voxels just kills performance. Any clues as to what direction to look in to do water the way you do it in Voxatron? Is it something that works well because it's done &quot;natively&quot;, so to speak, but wouldn't necessarily work well within the Lua performance constraints of the custom scripting feature?</p> https://www.lexaloffle.com/bbs/?tid=34089 https://www.lexaloffle.com/bbs/?tid=34089 Tue, 30 Apr 2019 05:52:46 UTC Hourglass Stars Tweetcart <p> <table><tr><td> <a href="/bbs/?pid=63598#p"> <img src="/bbs/thumbs/pico8_mb_tweetcart_hourglass-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=63598#p"> Hourglass Stars</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=63598#p"> [Click to Play]</a> </td></tr></table> </p> <p>A very simple tweetcart, but with the code expanded to make it easier to understand what's happening. Enjoy!</p> https://www.lexaloffle.com/bbs/?tid=33887 https://www.lexaloffle.com/bbs/?tid=33887 Tue, 16 Apr 2019 23:54:06 UTC Color Palettes <p> <table><tr><td> <a href="/bbs/?pid=61375#p"> <img src="/bbs/thumbs/vox_mb_colors-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=61375#p"> Color Palettes</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=61375#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is a quick little cart to let you see the difference between the editor color palette and the palette available through code. I hope it's useful! :)</p> https://www.lexaloffle.com/bbs/?tid=33095 https://www.lexaloffle.com/bbs/?tid=33095 Thu, 31 Jan 2019 00:18:30 UTC Five Stones From Home <p> <table><tr><td> <a href="/bbs/?pid=61277#p"> <img src="/bbs/thumbs/vox_mb_ggj2019-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=61277#p"> Five Stones From Home</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=61277#p"> [Click to Play]</a> </td></tr></table> </p> <p>A small exploration game about a little being who has crash landed on a planet and needs to find how to get home. You find some waystones that look promising. If you could only find a way to activate them, maybe they'd help....</p> <p>(Please know that this is game jam code, which means it's <em>horrendous</em>.)</p> <p><em>EDIT:</em> Added the insides of trees so they look cool when they clip off the edge of the screen, and also a label image.</p> https://www.lexaloffle.com/bbs/?tid=33057 https://www.lexaloffle.com/bbs/?tid=33057 Mon, 28 Jan 2019 00:09:05 UTC