Many changes all around. Started main menu.
Added Drawable, Sprite and SoundEffect classes. Added comments to Fader class.
This commit is contained in:
@@ -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
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user