RaptorBandit [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=32107 Elite Velocity v1.0 <p> <table><tr><td> <a href="/bbs/?pid=81427#p"> <img src="/bbs/thumbs/pico8_rhagedoza-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=81427#p"> Elite Velocity v1.0</a><br><br> by <a href="/bbs/?uid=32107"> RaptorBandit</a> <br><br><br> <a href="/bbs/?pid=81427#p"> [Click to Play]</a> </td></tr></table> </p> <h2>Elite Velocity</h2> <p>Version 1.0 2020-09-01</p> <h3>Asteroid Miner's Flight Training Manual</h3> <p>Up - Thrust<br /> Left/Right - Turn Left/Right<br /> Down - Charge warp (requires fuel)<br /> X - Fire Weapon<br /> Z - Dock at station / tractor beam (requires purchase)</p> <p><em>Congratulations on your purchase of the Arrow-class shuttle. This shuttle is rated for asteroid mining and is equipped with a mk1 blaster for destroying asteroids and self-defense. You will also find a warp drive pre-installed, allowing jumps to new systems in deep space. An asteroid-scoop allows easy ore collection by simply flying into floating pieces of ore. Finally, expansion slots allow room for upgrades such as a tractor beam, IFF radar, and powerful mining lasers. These upgrades can be purchased and installed by licensed technicians found at space stations across the galaxy.</em></p> <p><em>Asteroid mining is an extremely profitable enterprise for any intrepid pilot willing to take their vessel into deep space. With some luck, a good captain can score an early retirement in short order! Safe flying, captain!</em></p> <h3>Tips n' Tricks</h3> <ul> <li>Shoot and destroy asteroids to reveal ore. Acquire ore by flying over it.</li> <li>Dock at space stations to purchase fuel and upgrades with ore.</li> <li>Once you've cleared out a system of asteroids, use fuel to warp to the next system.</li> <li>Ensure you always have enough ore to purchase fuel, or you may become stranded in deep space!</li> <li>Watch out for space pirates who will attempt to destroy you. The farther you warp into deep space, the more dangerous and numerous they become! Defend yourself with your ship's blaster.</li> <li>Be wary, if you linger in a system for too long, pirates will track you down!</li> <li>Once you've collected enough ore to live out a long and healthy life, you can choose to RETIRE at any space station.</li> <li>If you take damage you can buy a REPAIR at any space station.</li> </ul> https://www.lexaloffle.com/bbs/?tid=39460 https://www.lexaloffle.com/bbs/?tid=39460 Tue, 01 Sep 2020 18:47:11 UTC Chasm of Screams <p> <table><tr><td> <a href="/bbs/?pid=78723#p"> <img src="/bbs/thumbs/pico8_wahhigeye-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=78723#p"> Chasm of Screams v1.1</a><br><br> by <a href="/bbs/?uid=32107"> RaptorBandit</a> <br><br><br> <a href="/bbs/?pid=78723#p"> [Click to Play]</a> </td></tr></table> </p> <h3>Welcome to the Chasm of Screams</h3> <p><em>&quot;Unceremoniously thrust out of stasis, you exit the derelict jumpship and land on the slick tarmac of a waterborne facility. Heavy rains and rolling waves batter the rusting catwalks of this ocean rig. Lightning storms and crumbling megastructures dot the horizon.</em></p> <p><em>Skeletal claws and glowing eyes lunge from the shadows. They hunger for your soul.</em></p> <p><em>Someone or something is tight-beaming you a basic combat survival guide via an open frequency:&quot;</em></p> <ul> <li>Use the arrow keys to navigate the environment. Move into enemies to attack with your melee weapon.</li> <li>Use X to interact with objects that you are standing on top of, such as picking up a new weapon or descending stairs.</li> <li>Use Z to enter aim mode. Use the arrow keys to highlight an enemy with your reticle, then press Z again to fire your ranged weapon.</li> <li>While you are in Aim mode, press X at any time to cancel Aim mode.</li> </ul> <p><em>&quot;Mission Objective: Infiltrate Level 7 of the rig and defeat all monsters within.&quot;</em></p> <p>Hello everyone, this game is my first coding project ever. It is a simple combat-focused roguelike with a aiming mechanic for using ranged weapons. I have been poking at it on-and-off for a while now to self-teach myself Pico-8 and LUA. I figured it was time to &quot;finish&quot; it and upload it instead of spending forever picking at every possible bug and feature. The code I've written is really bad (REALLY bad) but I'm happy to have something that actually works from start to finish. At the start of the code I've credited anyone who I borrowed code snippets from or otherwise got inspiration from their carts/tutorials. Thanks for taking a look and I hope you enjoy!</p> <ul> <li>RaptorBandit</li> </ul> <p>Notes: Unfortunately the music sounds pretty funky via the web player in chrome. I recommend downloading the cart and playing it locally.</p> <p>Updated to version 1.1 2020/07/21<br /> -fixed runtime error line 80 tab 3</p> https://www.lexaloffle.com/bbs/?tid=38622 https://www.lexaloffle.com/bbs/?tid=38622 Tue, 30 Jun 2020 20:50:09 UTC Deleting tables with duplicate contents <p>Hi everyone, I seem to have coded myself into a bit of a hole and I'm hoping someone has a suggestion on how to get out of it!</p> <p>What I need to be able to do is - iterate through all the subtables in a table, and delete any subtables that have identical values. Below is the setup and the two methods my researching has found, but I've tried both so far with no success:</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> x = {} add(x,{a=1}) add(x,{a=1}) --table x now has two subtables --that both contain a=1, and we --need to delete the duplicate! </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Method one:</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> index={} for t in all(x) do if index[t] then del(x,t) end index[t]=true 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>No luck with this one, it DOES work if the duplicate values live in the main table and outside of the subtable, but I'm having trouble formatting it correctly to check the subtables.</p> <p>Method two:</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> for i=1,#x do if x[i].a == x[i+1].a then del(x,i) 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>Still no luck! This method gives me a runtime error:</p> <p>if x[i].a ==x[i+1].a then<br /> attemp to index field '?' (a nil value)</p> <p>Any suggestions anyone has on how to do this properly would be much appreciated!</p> https://www.lexaloffle.com/bbs/?tid=32138 https://www.lexaloffle.com/bbs/?tid=32138 Sun, 28 Oct 2018 17:08:04 UTC