MrAwesome [Lexaloffle Blog Feed] Loading local carts in an exported build? <p>So I have a launcher-type game. I want to load local, on-disk carts. It works fine in the editor, but as soon as I export it, it fails to work.</p> <p>The basic code for loading looks like this:<br /> <code>load(cartid, 'back to launcher')</code></p> <p>I have also tried putting a './' at the beginning and a '.p8' at the end to no avail.</p> <p>I put the .p8 files into the same directory as the exe, like:<br /> windows<br /> -- game.exe<br /> -- data.pod<br /> -- sdl2.dll<br /> -- jelpi.p8</p> <p>How might I go about making an exported game that can load carts from disk?</p> Fri, 06 Oct 2023 23:03:07 UTC Sand Simulator <p>Exactly what it sounds like: a sand simulator.</p> <p>Use the mouse to control where to put sand, left-click (or X) to place sand, and right-click (Z) to place normal, non-falling blocks.</p> <p>it is very computationally intensive, be warned</p> <p> <table><tr><td> <a href="/bbs/?pid=128599#p"> <img src="/bbs/thumbs/pico8_sand_simulator-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=128599#p"> sand_simulator</a><br><br> by <a href="/bbs/?uid=68337"> MrAwesome</a> <br><br><br> <a href="/bbs/?pid=128599#p"> [Click to Play]</a> </td></tr></table> </p> Sun, 16 Apr 2023 00:01:46 UTC Rockfall? <p>4/1/23</p> <p> <table><tr><td> <a href="/bbs/?pid=127961#p"> <img src="/bbs/thumbs/pico8_rockfall4-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=127961#p"> Rockfall?</a><br><br> by <a href="/bbs/?uid=68337"> MrAwesome</a> <br><br><br> <a href="/bbs/?pid=127961#p"> [Click to Play]</a> </td></tr></table> </p> Sat, 01 Apr 2023 14:01:48 UTC Space game <h1>Space Game</h1> <p>a continuation of <a href="">this project</a> but with actual gameplay</p> <p> <table><tr><td> <a href="/bbs/?pid=127266#p"> <img src="/bbs/thumbs/pico8_spacegame-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=127266#p"> Space Game v1.0.1</a><br><br> by <a href="/bbs/?uid=68337"> MrAwesome</a> <br><br><br> <a href="/bbs/?pid=127266#p"> [Click to Play]</a> </td></tr></table> </p> <p>Use arrow keys to turn and move, z to explode (currently just to test the feature, will be removed later)</p> <h3>The Idea</h3> <p>A game that mixes many popular space games, with movement similar to Asteroids, space fights like Galaga, and maybe more in the future. There will be an element of upgrading your spaceship and a currency and whatnot as well.</p> <h3>Current Features</h3> <ul> <li>Parallax background effect</li> <li>Goodish movement</li> <li>Cool particles</li> <li>Runs at 60fps</li> </ul> <h3>Planned Features</h3> <ul> <li>Asteroids / Asteroid mining</li> <li>Space Pirates</li> <li>Space Stations</li> <li>???</li> </ul> <h3>Updates</h3> <p><div><div><input type="button" value=" Show " onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = ' Hide '; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = ' Show '; }"></div><div><div style="display: none;"><br /> v1.0.1</p> <ul> <li>Fixed cart image</li> </ul> <p>v1.0</p> <ul> <li>Created the game<br /> </div></div></div></li> </ul> <p>Before you tell me that space has no air resistance, I know that. It just makes the movement feel easier to deal with than having to go in the opposite direction to slow down and often overshooting destinations, so I added it in. It also makes particles look better like that.</p> Fri, 17 Mar 2023 21:37:23 UTC Happy Pi Day! <h3>Today is 3/14 (In America, sorry everyone [?] else). This is Pi day.</h3> <p>I present a &quot;fun&quot; program that kinda calculates an approximation for Pi. It uses a Monte Carlo method, which isn't <em>exact</em>, but can get close over time. Being in PICO-8, it can't run for very long before running out of memory, but it still kinda works.</p> <p>For more on Monte Carlo methods, I adapted mine from <a href="">this Wikipedia page</a></p> <p> <table><tr><td> <a href="/bbs/?pid=127147#p"> <img src="/bbs/thumbs/pico8_happypiday-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=127147#p"> Pi Calculator</a><br><br> by <a href="/bbs/?uid=68337"> MrAwesome</a> <br><br><br> <a href="/bbs/?pid=127147#p"> [Click to Play]</a> </td></tr></table> </p> <p>fun fact: If you edit the program to have the line <code>srand(314)</code> toward the top, it will get 3.1416, the closest you can get to Pi with only 4 decimal places (It would be 3.1415, but the next digit is 9, so rounded, it's closer).</p> Tue, 14 Mar 2023 21:59:52 UTC Stars <h1>stars</h1> <h3>a parallax background thing</h3> <p>I was looking at a friend of mine's game and saw a cool star background effect. I decided I wanted to make something similar. I ended up with this. It's not quite the same, but still cool.</p> <p>Opening the pause menu (enter or p) lets you configure options for it.</p> <p>The mouse does not work on BBS carts, however it works fine in the app. Run <code>load #stars_effect</code> to use it.</p> <p>thoughts?</p> <p> <table><tr><td> <a href="/bbs/?pid=127112#p"> <img src="/bbs/thumbs/pico8_stars_effect-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=127112#p"> stars_effect</a><br><br> by <a href="/bbs/?uid=68337"> MrAwesome</a> <br><br><br> <a href="/bbs/?pid=127112#p"> [Click to Play]</a> </td></tr></table> <br /> also, if you want this for any project of yours, feel free to use it!</p> Tue, 14 Mar 2023 02:04:40 UTC Sealsurf v1.0 <h1>Sealsurf</h1> <p>A game about seals, fish, and pollution.<br /> <table><tr><td> <a href="/bbs/?pid=124740#p"> <img src="/bbs/thumbs/pico8_sealsurf-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=124740#p"> Sealsurf v1.0</a><br><br> by <a href="/bbs/?uid=68337"> MrAwesome</a> <br><br><br> <a href="/bbs/?pid=124740#p"> [Click to Play]</a> </td></tr></table> </p> <p>As a seal, you must venture out to eat all the fish you can find. But, due to those darn humans, there's trash everywhere! How much can you eat before hitting garbage?</p> Mon, 23 Jan 2023 22:55:11 UTC Countdown to New Years! <p>Merry New Years!</p> <p> <table><tr><td> <a href="/bbs/?pid=123409#p"> <img src="/bbs/thumbs/pico8_countdown_to_newyears-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=123409#p"> Countdown to New Years!</a><br><br> by <a href="/bbs/?uid=68337"> MrAwesome</a> <br><br><br> <a href="/bbs/?pid=123409#p"> [Click to Play]</a> </td></tr></table> </p> <p>sorry if im late</p> Sun, 01 Jan 2023 05:19:12 UTC Rockfall 3 v1.1.1 <h2>Rockfall 3</h2> <p> <table><tr><td> <a href="/bbs/?pid=123235#p"> <img src="/bbs/thumbs/pico8_rockfall3-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=123235#p"> Rockfall 3 v1.1.1</a><br><br> by <a href="/bbs/?uid=68337"> MrAwesome</a> <br><br><br> <a href="/bbs/?pid=123235#p"> [Click to Play]</a> </td></tr></table> </p> <h3>A brand new adventure in the Rockfall series!</h3> <p>Differences between 1 and 3:</p> <ul> <li>CUSTOMIZATION! Give yourself a hat, and set the color of every part of Rockfall Person!</li> <li>DIFFICULTY! Change the difficulty to make it easier or harder to play at your own level!</li> <li>GRAPHICS UPDATE! Now with particles and screen shake, you can select different levels from the options menu.</li> <li>EXTRA RANDOMNESS! A new engine allows for more randomness in rocks' falling and velocity.</li> <li>NEW ENGINE! It runs much better, It's less buggy, and it's rewritten from the ground up!</li> <li>BETTER HITBOXES! Rather than Pythagorean Distance^ for perfect circles, a square hitbox is used to fix bugs and have a better experience.</li> </ul> <p>^ Finds distance with d=&radic;((x_2-x_1)&sup2;+(y_2-y_1)&sup2;), but because of squaring and PICO-8's memory, it caused faulty collision in RF1.</p> <p>PATCH NOTES:<br /> <div><div><input type="button" value=" Show " onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = ' Hide '; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = ' Show '; }"></div><div><div style="display: none;"><br /> v1.1.1:</p> <ul> <li>Fixed menu items saying to use O instead of X after changes in v1.1<br /> v1.1:</li> <li>Changed menus to all use X for closing/selecting, rather than a mix of X/O<br /> </div></div></div></li> </ul> Thu, 29 Dec 2022 18:16:51 UTC Cool Text Effect <p>I've seen a nice-looking text effect where it has an outline in a bunch of games and thought it looked good. I decided I wanted to figure out how I did it on my own. Anyway, I made it and think it's cool. Posting this in case anyone wanted to use it.</p> <p> <table><tr><td> <a href="/bbs/?pid=123200#p"> <img src="/bbs/thumbs/pico8_wazokusowu-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=123200#p"> cool text</a><br><br> by <a href="/bbs/?uid=68337"> MrAwesome</a> <br><br><br> <a href="/bbs/?pid=123200#p"> [Click to Play]</a> </td></tr></table> </p> Wed, 28 Dec 2022 21:44:58 UTC Get data from external file? <p>I'm working on a Minecraft (2d) clone. I have world generation pretty much complete, but I need to have a way to store said generation. I know that using <code>printh()</code> lets you write to files, but I want to read the contents from an external file like <code>new_world.dat</code> or something similar.</p> Wed, 07 Dec 2022 01:31:11 UTC Lava Rockfall v1.1b <p>I'm proud to present...</p> <h2>Lava Rockfall!</h2> <p>(oh gosh)</p> <p>If you haven't already heard of <a href="">Rockfall</a>, it's the first video game I ever completed.</p> <h3>What is it?</h3> <p>Lava Rockfall is a floor-is-lava style game. Jump from rock to rock to not fall in the lava. Be careful, though. Being hit by a rock can shove you into the lava!</p> <p>If you think that the screen gets too clogged up with particles and whatnot, or you are (somehow) lagging, you can pause the game and select <code>Disable GFX</code> to disable it, and <code>Enable GFX</code> to enable it again.</p> <p>If you feel the game is too difficult, feel free to press <code>Disable Deaths</code> in the pause menu. You no longer will take any damage.</p> <p> <table><tr><td> <a href="/bbs/?pid=119274#p"> <img src="/bbs/thumbs/pico8_lavarockfall-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=119274#p"> Lava Rockfall 1.1</a><br><br> by <a href="/bbs/?uid=68337"> MrAwesome</a> <br><br><br> <a href="/bbs/?pid=119274#p"> [Click to Play]</a> </td></tr></table> </p> <p>The only reason this exists is because my friend decided that it should.</p> <p>Controls:<br /> Z/C (Computer) or O (Mobile): Jump<br /> X/V (Computer) or X (Mobile): Start the game<br /> Arrow Keys (Computer) or D-Pad (Mobile): Move</p> <p>Version 1.1 adds a volcano, background, and smoke plume. 1.1b fixes smoke still showing up with No GFX on.</p> <p>Thanks for playing!</p> Tue, 18 Oct 2022 22:42:50 UTC Store a reference to a variable? <p>I'm trying to make a block-coding program, but I need to store a reference to a variable. As in, whenever you try and get a value of something, it returns the variable. If there's no way to do this, then I have other ideas. Anyway, heres what I got:</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> block = { func = print params = { x, 63, 63, 7 } } </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>However, it just assumes the <strong><em>current</em></strong> value of <code>x</code> rather that storing a reference to it. How would I go about doing this?</p> Sun, 09 Oct 2022 17:13:42 UTC Amazing Music <p> <iframe src="sfxp.php?id=68337_2" width="404" height="302" style="border:none; overflow:hidden"></iframe><a style="cursor:pointer; font-size:8pt" onclick=' var el = document.getElementById("sfxcode_68337_2"); if ( == "none") = ""; else = "none"; microAjax("/bbs/sfxc/68337_2.txt", function (retdata){ var el = document.getElementById("sfxcode_68337_2"); el.innerHTML = retdata; el.focus();; } ); '> [sfx] </a> <textarea rows=3 class=lexinput id="sfxcode_68337_2" style="width:480px;background-color:#fed;display:none;overflow:hidden; font-size:4pt;"></textarea> </p> <p>cart for firefox'rs ex: <a href=""> @dw817</a></p> <p>(now works for realzies now)</p> <p> <table><tr><td> <a href="/bbs/?pid=118009#p"> <img src="/bbs/thumbs/pico8_botozeraku-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=118009#p"> not a rickroll (now w/ music)</a><br><br> by <a href="/bbs/?uid=68337"> MrAwesome</a> <br><br><br> <a href="/bbs/?pid=118009#p"> [Click to Play]</a> </td></tr></table> </p> <p>made with <a href="">denote</a></p> Mon, 26 Sep 2022 23:42:17 UTC Do web exports require .html and .js files to work? <p>I was exporting stuff to be a web export, because I have a <a href="">website with my games on it</a>. But, do the HTML and JavaScript files both have to be included?</p> <p>on a somewhat -<em>somewhat</em>- unrelated topic, I made <a href="">this cool post</a> a while ago and nobody saw it. It's a website maker for all you people wanting your own website.</p> Fri, 23 Sep 2022 01:14:23 UTC Feature Request: Mouse Still Works In Touchscreen Mode In EDU Edition <p>I, during my free time, like to make games. I usually use the app, but on my school chromebook, I use EDU edition (<a href="">found here</a>). Said chromebook has a touchscreen. PICO-8 works until you touch it, and when you do so the mouse no longer works. This is what should be changed. It is incredibly annoying, because you have to save the file, reload the page, type <code>load</code>, find the file, and select it. It takes a while, and is annoying when your in the middle of something and just accidentally touch the screen (Such as when you are trying to point out something to another person), and I would love to see this changed. My solution? The little popup thing that says <strong>Sorry, touchscreen typing is not supported. Please plug in a keyboard!</strong> should have an extra button, 'Undo' (Or something, I'm not sure exactly what to call it). The button itself would then disable touchscreen mode.</p> Tue, 13 Sep 2022 00:13:29 UTC BUG: Some parts shown in sprite-drawer not square <p>If you look closely, there is an extra line of color than there should be in the leftmost and topmost rectangles in the sprite editor. The screenshots use the cursor (A perfect square of 7x7 pixels) to show that the sides aren't square. The second photo shows (annotated) the ones that aren't square<br /> <img style="margin-bottom:16px" border=0 src="/media/68337/spredit_0.png" alt="" /><img style="margin-bottom:16px" border=0 src="/media/68337/spredit_2.jpg" alt="" /></p> Sun, 11 Sep 2022 23:01:10 UTC Anyone know a good way to zoom camera? <p>I know that I can make sprites bigger (with <code>sspr()</code>) but is there any way to display map tiles at, say, 2x size?</p> Sun, 11 Sep 2022 15:11:35 UTC Rockfall Run <h1>Rockfall Run</h1> <p>The next part in the rockfall series (oh no)</p> <p>I'm actually pretty proud of this one. I spent quite a while on graphic effects, such as particles and clouds. Tell me what you think of it!</p> <p> <table><tr><td> <a href="/bbs/?pid=117131#p"> <img src="/bbs/thumbs/pico8_rfr-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=117131#p"> Rockfall Run</a><br><br> by <a href="/bbs/?uid=68337"> MrAwesome</a> <br><br><br> <a href="/bbs/?pid=117131#p"> [Click to Play]</a> </td></tr></table> </p> <h2>Features</h2> <ul> <li>Fast-Paced Gameplay</li> <li>3 Difficulty levels</li> <li>Pretty cool graphical effects (Like particles)</li> <li>Powerups</li> </ul> <p>Up now on <a href="">Sealsearch (My website)</a>, and <a href=""></a> if you want it somewhere other than here for whatever weird reason.</p> Sat, 10 Sep 2022 02:17:57 UTC Strings to Maps <p>This is a little tool to convert a big ol' list of strings into the PICO-8 map.<br /> This has some very specific usage cases, and there's probably a better way somehow, but heres an example of when you might use it:</p> <p><strong> Imagine you are making a big parkour game, with lots of fairly big levels. You can't possibly hold all of them in the PICO-8's map together. So you use this tool to load in a new map on demand. </strong></p> <p>In this case, you may want to use this.</p> <p>Here's the cart:</p> <p> <table><tr><td> <a href="/bbs/?pid=116958#p"> <img src="/bbs/thumbs/pico8_jodepunawi-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=116958#p"> Strings to Maps</a><br><br> by <a href="/bbs/?uid=68337"> MrAwesome</a> <br><br><br> <a href="/bbs/?pid=116958#p"> [Click to Play]</a> </td></tr></table> </p> <p>controls:<br /> arrow keys to move camera position<br /> X/C etc to change to map 2</p> Mon, 05 Sep 2022 23:49:17 UTC