Flower = Tile:extend{ image = 'data/flower32.png', name = 'flower', invTile = Tile:new{image = 'data/flower.png'}, onNew = function(self) --print(self.x, self.y, self.width, self.height) end, onCollide = function(self, other, xOl, yOl) if other == the.player then the.inventory:add(self) the.app.view:remove(self) end end }