/ld26

To get this branch, use:
bzr branch http://9ix.org/bzr/ld26

« back to all changes in this revision

Viewing changes to troll.lua

  • Committer: Josh C
  • Date: 2013-04-28 01:21:46 UTC
  • Revision ID: josh@9ix.org-20130428012146-42c1hx6r1g7y1kgu
fadeĀ in

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Troll = Tile:extend {
2
 
   image = 'data/troll.png',
3
 
   onCollide = function(self, other, xOl, yOl)
4
 
                  if the.inventory.items['fish'] then
5
 
                     self.y = self.y - self.height
6
 
                     the.inventory:remove('fish')
7
 
                  else
8
 
                     self:displace(other)
9
 
                  end
10
 
               end
11
 
}
 
 
b'\\ No newline at end of file'