1
Transition = Group:extend {
4
local target = self.target
5
-- NOTE: X/Y will fail if you init Transition before Player!
6
box = Fill:new{x = self.x, y = self.y,
7
height = the.player.height,
8
width = the.player.width,
10
onCollide = function(self, other, xOl, yOl)
12
if other == the.player then
13
the.view:newLevel(target)
15
print("Colliding with: "..other)
20
self:add(Text:new{x = self.x, y = self.y,
24
onUpdate = function(self, dt)
25
self.visible = DEBUG and the.console.visible