From 995faabbbdebc8772792091d31a6d9fc733952a5 Mon Sep 17 00:00:00 2001 From: NCLanceman Date: Thu, 17 Apr 2025 17:23:29 -0500 Subject: [PATCH] enemy decomposition and so on --- main.lua | 2 +- masterController.lua | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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