diff --git a/main.lua b/main.lua index d3be691..61d92e4 100644 --- a/main.lua +++ b/main.lua @@ -14,7 +14,7 @@ function love.load() print("Playable Bounds: ", bounds[1], " , ", bounds[2]) --place the player in the middle of the screen, close to the bottom Player = Player(window_width / 2, window_height * 0.9, bounds) - Controller = MasterController() + Controller = MasterController(bounds) ListOfEnemies = {} diff --git a/masterController.lua b/masterController.lua index fd4d681..9ed9234 100644 --- a/masterController.lua +++ b/masterController.lua @@ -1,10 +1,13 @@ --! file: mastercontroller.lua --This is the master game controller for my little space game +MasterController = Object:extend() function MasterController:new(bounds) self.score = 0 self.lives = 3 self.playableBounds = bounds + self.currentEnemies = {} + self.listOfStages = {} end function MasterController:spawnEnemy() end