example/plateform: add asset loading

This commit is contained in:
Kazhnuz 2019-04-29 21:23:51 +02:00
parent 6dbbdc46dd
commit 1c167ba566
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,5 @@
return {
["sprites"] = {
{"player", "examples/gameplay/plateform/assets/monkey_lad"}
}
}

View file

@ -31,6 +31,8 @@ function Plateformer:new()
local folder = "examples.gameplay.plateform" local folder = "examples.gameplay.plateform"
self.assets:batchImport("examples.gameplay.plateform.assets")
self.world = World(self, folder .. ".actors", "examples/gameplay/plateform/assets/platformer.lua") self.world = World(self, folder .. ".actors", "examples/gameplay/plateform/assets/platformer.lua")
end end