From 21659cedb750fb1345c80f53fb55643cdf95e8eb Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 28 Jan 2019 09:58:42 +0100 Subject: [PATCH] src/core: add an asset manager to the scene object --- sonic-radiance.love/core/modules/scenes.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sonic-radiance.love/core/modules/scenes.lua b/sonic-radiance.love/core/modules/scenes.lua index dfda261..a46faff 100644 --- a/sonic-radiance.love/core/modules/scenes.lua +++ b/sonic-radiance.love/core/modules/scenes.lua @@ -23,10 +23,13 @@ ]] local Scene = Object:extend() +local Assets = require "core.modules.assets" function Scene:new() self.mouse = {} self.mouse.x, self.mouse.y = core.screen:getMousePosition() + + self.assets = Assets() end function Scene:register()