Log In  
Follow
RaptorBandit

Cart #rhagedoza-0 | 2020-09-01 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
21

Elite Velocity

Version 1.0 2020-09-01

Asteroid Miner's Flight Training Manual

Up - Thrust
Left/Right - Turn Left/Right
Down - Charge warp (requires fuel)
X - Fire Weapon
Z - Dock at station / tractor beam (requires purchase)

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.

[ Continue Reading.. ]

21
5 comments



Cart #wahhigeye-1 | 2020-07-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
25

Welcome to the Chasm of Screams

"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.

Skeletal claws and glowing eyes lunge from the shadows. They hunger for your soul.

Someone or something is tight-beaming you a basic combat survival guide via an open frequency:"

  • Use the arrow keys to navigate the environment. Move into enemies to attack with your melee weapon.
  • Use X to interact with objects that you are standing on top of, such as picking up a new weapon or descending stairs.

[ Continue Reading.. ]

25
8 comments



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!

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:

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!

Method one:

index={}
for t in all(x) do
	if index[t] then
		del(x,t)
	end
	index[t]=true
end

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.

Method two:

for i=1,#x do
	if x[i].a == x[i+1].a then
	 del(x,i)
	end
end

[ Continue Reading.. ]

2 comments