Alamantus [Lexaloffle Blog Feed] File IO for Saves/Highscores? <p>Is there any way to save data from the Pico-8? I'd like to have persistent high scores in my game, but the Lua file io doesn't seem to work (either that or I'm doing something wrong).</p> <p>Has anyone done this or have an example of how to do this, or is it just not possible?</p> Thu, 01 Oct 2015 09:58:30 UTC SpellCasters <p> <table><tr><td> <a href="/bbs/?pid=13692#p"> <img src="/bbs/thumbs/pico13867.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=13692#p"> SpellCasters 0.7.1</a><br><br> by <a href="/bbs/?uid=9622"> Alamantus</a> <br><br><br> <a href="/bbs/?pid=13692#p"> [Click to Play]</a> </td></tr></table> </p> <p>My first Pico-8 game!</p> <p>There's actually gameplay stuff this time! Instructions are in the game, 4 enemies are in the game, and you can lose!</p> <p>The enemies appear randomly, and you have to learn the correct spell to use on each type. After a certain amount of time, the enemy will attack, and with each defeated enemy, the next is even faster. Cast your spells quickly and get as far as you can before being overtaken by the horde!</p> <p><strong>How to Play:</strong><br /> Boot up your pico-8, load the cart, and run! You�ll see a wand and a target (which is just for show). Use your wand to cast any of the 4 spells (fire, ice, elec, and rock) in the game by matching their directional formula and casting the spell. Every time you run the game, the 4 spells� formulas randomize, so you�ll need to learn the spells from the spellbook before you can cast anything successfully. You can�t move your wand while looking at your spellbook, though. That�s preposterous! So learn those spells and cast away!</p> <p>The correct spells to use against enemies never change, so if you die while learning the correct spell to use, you can still use the proper spell next time. But don't wait too long to cast your spells, because your entered spell expires after 2 seconds! The spell expiration never changes, but the time before the enemy attacks does change, so be quick!</p> <p><strong>Controls:</strong><br /> � Arrow Keys: move your wand<br /> � Z: Cast your spell<br /> � X: Open spellbook<br /> � Z while holding X: Change your wand (just cosmetic)<br /> � Ctrl + R: Restart cart (if you want to change the spells easily)</p> <p><strong>Plans/Thoughts:</strong><br /> � Save feature for consistent spells/high scores using Lua�s io�is it possible?<br /> � Combo spells. (Ice -&gt; Elec does more damage, etc.)</p> <p>If you have any ideas, please let me know! I just thought the mechanic would be fun, and I didn�t have any solid ideas for how to play with it, but if you have any thoughts, let me know!</p> <p>Below is the original proof of concept cart. It contains nothing but casting spells with no time limit. Could be good to practice with before trying for a high score run on the most recent cart! (Note: no high scores are saved yet.)<br /> <table><tr><td> <a href="/bbs/?pid=13692#p"> <img src="/bbs/thumbs/pico13691.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=13692#p"> SpellCasters 0.6</a><br><br> by <a href="/bbs/?uid=9622"> Alamantus</a> <br><br><br> <a href="/bbs/?pid=13692#p"> [Click to Play]</a> </td></tr></table> </p> Fri, 04 Sep 2015 13:51:28 UTC