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
-- 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") |
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() --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 |