scenes/level: init a gamecore world gravity system

This commit is contained in:
Kazhnuz 2019-06-01 17:53:56 +02:00
parent 7385207f95
commit 3bf8fe3c1d
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ function World:new(scene, mapfile)
self.map = Sti("assets/maps/" .. mapfile .. ".lua")
self.obj = Obj
self:initActors()
self:setGravity()
self.backcolor = self.map.backgroundcolor or {0, 0, 0}
self.activeObjects = 0