45
Fairy = Sprite:extend{
47
invTile = Tile:new{image = 'data/fairy.png'},
48
onCollide = function(self, other, xOl, yOl)
49
if the.inventory.items['cat'] then
50
the.inventory:add(self)
52
the.inventory:remove('cat')
60
image = 'data/cat.png',
62
invTile = Tile:new{image = 'data/cat48.png'},
63
onNew = function(self)
64
--print(self.x, self.y, self.width, self.height)
66
onCollide = function(self, other, xOl, yOl)
67
if other == the.player then
68
the.inventory:add(self)
69
the.app.view:remove(self)