Browse Source

enemy decomposition and so on

master
NCLanceman 7 months ago
parent
commit
995faabbbd
  1. 2
      main.lua
  2. 3
      masterController.lua

2
main.lua

@ -14,7 +14,7 @@ function love.load()
print("Playable Bounds: ", bounds[1], " , ", bounds[2]) print("Playable Bounds: ", bounds[1], " , ", bounds[2])
--place the player in the middle of the screen, close to the bottom --place the player in the middle of the screen, close to the bottom
Player = Player(window_width / 2, window_height * 0.9, bounds) Player = Player(window_width / 2, window_height * 0.9, bounds)
Controller = MasterController() Controller = MasterController(bounds)
ListOfEnemies = {} ListOfEnemies = {}

3
masterController.lua

@ -1,10 +1,13 @@
--! file: mastercontroller.lua --! file: mastercontroller.lua
--This is the master game controller for my little space game --This is the master game controller for my little space game
MasterController = Object:extend()
function MasterController:new(bounds) function MasterController:new(bounds)
self.score = 0 self.score = 0
self.lives = 3 self.lives = 3
self.playableBounds = bounds self.playableBounds = bounds
self.currentEnemies = {}
self.listOfStages = {}
end end
function MasterController:spawnEnemy() end function MasterController:spawnEnemy() end

Loading…
Cancel
Save