| @@ -15,6 +15,7 @@ self.angle = 0 | |||||
| self.deletable = del | self.deletable = del | ||||
| self.maxtimer = tm | self.maxtimer = tm | ||||
| self.destX = x | self.destX = x | ||||
| self.otimer = tm | |||||
| self.timer = tm | self.timer = tm | ||||
| self.color = {1,1,1,1} | self.color = {1,1,1,1} | ||||
| self.appeared = false | self.appeared = false | ||||
| @@ -66,6 +66,9 @@ function level6.reset() | |||||
| local planetImage = love.graphics.newImage("entities/planet/planet" .. math.random(1, 18) .. ".png") | local planetImage = love.graphics.newImage("entities/planet/planet" .. math.random(1, 18) .. ".png") | ||||
| shipsleft = 1 | shipsleft = 1 | ||||
| projectiles = {} | projectiles = {} | ||||
| for i in ipairs(cannons) do | |||||
| cannons[i].timer = cannons[i].otimer | |||||
| end | |||||
| cannons[1].x = 100000 | cannons[1].x = 100000 | ||||
| cannons[1].destX = 100000 | cannons[1].destX = 100000 | ||||
| firstShip.fuel = 0 | firstShip.fuel = 0 | ||||
| @@ -74,6 +74,9 @@ function level7.reset() | |||||
| table.remove(planets, i) | table.remove(planets, i) | ||||
| end | end | ||||
| end | end | ||||
| for i in ipairs(cannons) do | |||||
| cannons[i].timer = cannons[i].otimer | |||||
| end | |||||
| table.insert(planets, planet(1000, -100, 50, 0.3, asteroidImage, "nodelete")) | table.insert(planets, planet(1000, -100, 50, 0.3, asteroidImage, "nodelete")) | ||||
| table.insert(planets, planet(1000, 0, 50, 0.3, asteroidImage, "nodelete")) | table.insert(planets, planet(1000, 0, 50, 0.3, asteroidImage, "nodelete")) | ||||
| table.insert(planets, planet(1000, 100, 50, 0.3, asteroidImage, "nodelete")) | table.insert(planets, planet(1000, 100, 50, 0.3, asteroidImage, "nodelete")) | ||||
| @@ -15,10 +15,15 @@ Some nice features include: | |||||
| Installation is simple, just download the windows EXE release from the releases tab! | Installation is simple, just download the windows EXE release from the releases tab! | ||||
| If you're on linux, then clone the repo, and use debug.sh to launch the game. Linux binary coming soon! | |||||
| The prerequisites are **love** and **zip** | |||||
| If you're on linux, you can clone the repo, or you can download the binary release from the releases tab too!. | |||||
| The prerequisites for runing the git version are **love** and **zip** | |||||
| If you're on arch, install the prerequisites with: | If you're on arch, install the prerequisites with: | ||||
| ``sudo pacman -S love zip | ``sudo pacman -S love zip | ||||
| `` | `` | ||||
| Changelog: | |||||
| - Changed practice scoring system | |||||
| - Fixed bug with cannon timers not resetting | |||||