2020-08-01 16:57:12 +02:00
|
|
|
local World = require "core.modules.world.world2D"
|
|
|
|
local RPGWorld = World:extend()
|
|
|
|
local objFile = "scenes.overworld.actors"
|
|
|
|
local mapFolder = "datas/gamedata/maps/sti/"
|
2021-03-23 21:59:33 +01:00
|
|
|
local RPGMap = require "scenes.overworld.map"
|
2020-08-01 16:57:12 +02:00
|
|
|
|
2021-03-23 21:59:33 +01:00
|
|
|
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)
|
2020-08-01 16:57:12 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
return RPGWorld
|