sonic-radiance/sonic-radiance.love/game/modules/world/battle.lua
Kazhnuz 70ed18202d feat: backport code from bluestreak
It'll give us the following features
- Support for autorun in shoot-style maps
- Pause menu in subgames
- Chunk in shoot maps
- Rings
2020-08-16 10:52:00 +02:00

17 lines
458 B
Lua

local ParentWorld = require "game.modules.world.parent"
local BattleWorld = ParentWorld:extend()
local customMap = require "game.modules.world.maps"
function BattleWorld:new(scene, mapname)
local mappath = game.utils.getMapPath("battle", mapname)
BattleWorld.super.new(self, scene, "battle", mapname)
self.mapname = mapname
end
function BattleWorld:createMapController()
customMap.Battle(self, self.maptype, self.mapname)
end
return BattleWorld