-
-
Save RonJeffries/852904b3ea1e2b74354e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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