19 lines
389 B
Lua
19 lines
389 B
Lua
---@class Stage:Room
|
|
local Stage = Room:extend()
|
|
|
|
function Stage:new()
|
|
Stage.super.new(self)
|
|
self.area:addCollisionManager()
|
|
self.area:addGameObject('Player', gw/2, gh/2)
|
|
end
|
|
|
|
function Stage:update(dt)
|
|
Stage.super.update(self, dt)
|
|
if input:pressed('action') then gotoRoom('Stage') end
|
|
end
|
|
|
|
function Stage:canvasDraw()
|
|
Stage.super.canvasDraw(self)
|
|
end
|
|
|
|
return Stage
|