example/plateform: add asset loading
This commit is contained in:
parent
6dbbdc46dd
commit
1c167ba566
2 changed files with 7 additions and 0 deletions
5
examples/gameplay/plateform/assets/init.lua
Normal file
5
examples/gameplay/plateform/assets/init.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
["sprites"] = {
|
||||
{"player", "examples/gameplay/plateform/assets/monkey_lad"}
|
||||
}
|
||||
}
|
|
@ -31,6 +31,8 @@ function Plateformer:new()
|
|||
|
||||
local folder = "examples.gameplay.plateform"
|
||||
|
||||
self.assets:batchImport("examples.gameplay.plateform.assets")
|
||||
|
||||
self.world = World(self, folder .. ".actors", "examples/gameplay/plateform/assets/platformer.lua")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue