19 lines
480 B
Lua
19 lines
480 B
Lua
|
local ParentWorld = require "game.modules.world.parent"
|
||
|
local ShootWorld = ParentWorld:extend()
|
||
|
|
||
|
local customMap = require "game.modules.world.maps"
|
||
|
|
||
|
function ShootWorld:new(scene, mapname)
|
||
|
local mappath = game.utils.getMapPath("shoot", mapname)
|
||
|
ShootWorld.super.new(self, scene, "shoot", mapname)
|
||
|
|
||
|
self.mapname = mapname
|
||
|
end
|
||
|
|
||
|
function ShootWorld:createMapController()
|
||
|
self.customMap.Shoot(self, self.maptype, self.mapname)
|
||
|
self.cameras:lockY(10)
|
||
|
end
|
||
|
|
||
|
return ShootWorld
|