fix(world): rename some instance of BaseWorld in world2D
This commit is contained in:
parent
e6c2af5429
commit
e7c7aa1f79
1 changed files with 4 additions and 4 deletions
|
@ -91,7 +91,7 @@ end
|
|||
-- MAP LOADING FUNCTIONS
|
||||
-- Handle loading of actors from map
|
||||
|
||||
function BaseWorld:batchActor(objectlayer, object)
|
||||
function World2D:batchActor(objectlayer, object)
|
||||
local name = objectlayer.name
|
||||
local gwidth = object.properties.gwidth or self.map.tilewidth
|
||||
local gheight = object.properties.gheight or self.map.tileheight
|
||||
|
@ -110,15 +110,15 @@ function BaseWorld:batchActor(objectlayer, object)
|
|||
end
|
||||
end
|
||||
|
||||
function BaseWorld:newActorFromMap(objectlayer, object)
|
||||
function World2D:newActorFromMap(objectlayer, object)
|
||||
self:newActor(objectlayer.name, object.x, object.y)
|
||||
end
|
||||
|
||||
function BaseWorld:newCollisionFromMap(objectlayer, object)
|
||||
function World2D:newCollisionFromMap(objectlayer, object)
|
||||
self:newCollision(objectlayer.name, object.x, object.y, object.width, object.height)
|
||||
end
|
||||
|
||||
function BaseWorld:addPlayerFromMap(object, i)
|
||||
function World2D:addPlayerFromMap(object, i)
|
||||
self:addPlayer(self.obj.Player(self, object.x, object.y), i, true)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue