2
image = 'data/flower32.png',
4
invTile = Tile:new{image = 'data/flower.png'},
6
--print(self.x, self.y, self.width, self.height)
8
onCollide = function(self, other, xOl, yOl)
9
if other == the.player then
10
the.inventory:add(self)
11
the.app.view:remove(self)
18
invTile = Tile:new{image = 'data/fish.png'},
19
onNew = function(self)
20
--print(self.x, self.y, self.width, self.height)
22
onCollide = function(self, other, xOl, yOl)
23
if other == the.player then
24
the.inventory:add(self)
25
the.app.view:remove(self)
32
invTile = Tile:new{image = 'data/flag.png'},
33
onCollide = function(self, other, xOl, yOl)
34
if the.inventory.items['flower'] then
35
the.inventory:add(self)
36
--the.app.view:remove(self)
38
the.inventory:remove('flower')
46
image = 'data/cat.png',
48
invTile = Tile:new{image = 'data/cat48.png'},
49
onNew = function(self)
50
--print(self.x, self.y, self.width, self.height)
52
onCollide = function(self, other, xOl, yOl)
53
if other == the.player then
54
the.inventory:add(self)
55
the.app.view:remove(self)