sonic-radiance/sonic-radiance.love/scenes/overworld/world.lua
2021-03-23 21:59:33 +01:00

19 lines
543 B
Lua

local World = require "core.modules.world.world2D"
local RPGWorld = World:extend()
local objFile = "scenes.overworld.actors"
local mapFolder = "datas/gamedata/maps/sti/"
local RPGMap = require "scenes.overworld.map"
function RPGWorld:new(scene, folder, area, playerx, playery)
--local mapFile = mapFolder .. folder .. "/" .. map .. ".lua"
self.folder = folder
self.area = area
RPGWorld.super.new(self, scene, objFile, nil, nil)
end
function RPGWorld:createMapController()
RPGMap(self, self.folder, self.area)
end
return RPGWorld