fix(levels): init a gravity system

This commit is contained in:
Kazhnuz 2019-06-16 18:20:32 +02:00
parent 8b168a699b
commit 0b9d34abe2
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,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