/ld26

To get this branch, use:
bzr branch /bzr/ld26

« back to all changes in this revision

Viewing changes to flower.lua

  • Committer: Josh C
  • Date: 2013-04-28 22:00:27 UTC
  • Revision ID: josh@9ix.org-20130428220027-uneuwd3am4wl6klk
GET FISH

Show diffs side-by-side

added added

removed removed

1
 
Flower = Tile:extend{
2
 
   image = 'data/flower32.png',
3
 
   name = 'flower',
4
 
   invTile = Tile:new{image = 'data/flower.png'},
5
 
   onNew = function(self)
6
 
              --print(self.x, self.y, self.width, self.height)
7
 
           end,
8
 
   onCollide = function(self, other, xOl, yOl)
9
 
                  if other == the.player then
10
 
                     the.inventory:add(self)
11
 
                     the.app.view:remove(self)
12
 
                  end
13
 
               end
14
 
}
 
 
'\\ No newline at end of file'