Skip to content

Instantly share code, notes, and snippets.

@RonJeffries
Created October 2, 2014 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RonJeffries/852904b3ea1e2b74354e to your computer and use it in GitHub Desktop.
Save RonJeffries/852904b3ea1e2b74354e to your computer and use it in GitHub Desktop.
function setup()
print("start")
FlyingObjects = {}
Ships = {}
Deletes = {}
Adds = {}
displayMode(FULLSCREEN_NO_BUTTONS)
--displayMode(STANDARD)
local ship = Ship(0.75*WIDTH,0.25*HEIGHT,90,color(255,255,0), false)
FlyingObjects[ship] = ship
Ships[ship] = ship
local ship2 = Ship(0.25*WIDTH,0.75*HEIGHT,270,color(15, 182, 246, 255), true)
FlyingObjects[ship2] = ship2
Ships[ship2] = ship2
print(ship, ship.name,ship2, ship2.name)
local sun = Sun()
FlyingObjects[sun] = sun
--Ships[sun] = sun
stroke(255,0,0)
strokeWidth(2)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment