Many changes all around. Started main menu.

Added Drawable, Sprite and SoundEffect classes.
Added comments to Fader class.
This commit is contained in:
2025-10-05 02:26:39 -04:00
parent fe8944b526
commit 7f8d79e00f
12 changed files with 395 additions and 66 deletions

View File

@@ -3,13 +3,13 @@
------------------------------------------------------------------------------
local make_class = require 'src.utils.classes'
local Drawable = require 'src.ui.drawable'
------------------------------------------------------------------------------
-- Class definitions
------------------------------------------------------------------------------
local GameState = make_class()
local GameState = make_class(Drawable)
------------------------------------------------------------------------------
@@ -17,13 +17,9 @@ local GameState = make_class()
------------------------------------------------------------------------------
function GameState:_init(name, index)
Drawable._init(self)
self.name = name
self.index = index
self.valid = false
end
function GameState:load()
end
@@ -32,37 +28,6 @@ function GameState:update(_)
end
function GameState:draw()
end
function GameState:unload()
end
function GameState:keypressed(_, _ , _)
end
function GameState:textinput(_)
end
function GameState:keyreleased(_, _)
end
function GameState:mousemoved(_, _, _, _)
end
function GameState:mousepressed(_, _, _)
end
function GameState:mousereleased(_, _, _)
end
------------------------------------------------------------------------------
-- Module return
------------------------------------------------------------------------------