Skip to content

Instantly share code, notes, and snippets.

View bradenfisher18's full-sized avatar

bradenfisher18

View GitHub Profile
-- Actual Final Project
function setup() --this function runs once
displayMode(FULLSCREEN) --plays game in full screen
moonsurfaceimg=readImage("Documents:moon") --sets image of the moon surface on the bottom of the screen
rocketimg=readImage("Space Art:Red Ship") --sets image for space ship
lifeicon=readImage("Space Art:Red Ship")--uses same image for "extra life" icon
invincibilityicon=readImage("Cargo Bot:Star Filled") --sets star picture to be used on invincibility power-up
L={} --table to hold lasers
bigasteroidimg=readImage("Space Art:Asteroid Large")
function setup() --this function runs once
displayMode(FULLSCREEN) --plays game in full screen
moonsurfaceimg=readImage("Documents:moon") --sets image of the moon surface
rocketimg=readImage("Space Art:Red Ship") --sets image for space ship
lifeicon=readImage("Space Art:Red Ship")--uses same image for "extra life" icon
invincibilityicon=readImage("Cargo Bot:Star Filled") --sets star picture to be used on invincibility power-up
L={} --table to hold lasers
bigasteroidimg=readImage("Space Art:Asteroid Large") --sets image for large asteroids
smallasteroidimg=readImage("Space Art:Asteroid Small") --sets image for small asteroids