src/core: add an asset manager to the scene object
This commit is contained in:
parent
a14d31f527
commit
21659cedb7
1 changed files with 3 additions and 0 deletions
|
@ -23,10 +23,13 @@
|
||||||
]]
|
]]
|
||||||
|
|
||||||
local Scene = Object:extend()
|
local Scene = Object:extend()
|
||||||
|
local Assets = require "core.modules.assets"
|
||||||
|
|
||||||
function Scene:new()
|
function Scene:new()
|
||||||
self.mouse = {}
|
self.mouse = {}
|
||||||
self.mouse.x, self.mouse.y = core.screen:getMousePosition()
|
self.mouse.x, self.mouse.y = core.screen:getMousePosition()
|
||||||
|
|
||||||
|
self.assets = Assets()
|
||||||
end
|
end
|
||||||
|
|
||||||
function Scene:register()
|
function Scene:register()
|
||||||
|
|
Loading…
Reference in a new issue