Reorganized code and assets.
This commit is contained in:
58
src/graphics/drawable.lua
Normal file
58
src/graphics/drawable.lua
Normal file
@@ -0,0 +1,58 @@
|
||||
------------------------------------------------------------------------------
|
||||
-- Imports
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
local make_class = require 'src.utils.classes'
|
||||
local Asset = require 'src.utils.asset'
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
-- Class definitions
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
local Drawable = make_class(Asset)
|
||||
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
-- Class methods
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
function Drawable:_init()
|
||||
end
|
||||
|
||||
|
||||
function Drawable:update(_)
|
||||
end
|
||||
|
||||
|
||||
function Drawable:draw()
|
||||
end
|
||||
|
||||
|
||||
function Drawable:keypressed(_, _ , _)
|
||||
end
|
||||
|
||||
|
||||
function Drawable:textinput(_)
|
||||
end
|
||||
|
||||
|
||||
function Drawable:keyreleased(_, _)
|
||||
end
|
||||
|
||||
|
||||
function Drawable:mousemoved(_, _, _, _)
|
||||
end
|
||||
|
||||
|
||||
function Drawable:mousepressed(_, _, _)
|
||||
end
|
||||
|
||||
|
||||
function Drawable:mousereleased(_, _, _)
|
||||
end
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
-- Module return
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
return Drawable
|
||||
Reference in New Issue
Block a user