/ld26

To get this branch, use:
bzr branch http://9ix.org/bzr/ld26
1
2
3
4
5
6
7
8
9
10
11
Troll = Tile:extend {
   image = 'data/troll.png',
   onCollide = function(self, other, xOl, yOl)
                  if the.inventory.items['fish'] then
                     self.y = self.y - self.height
                     the.inventory:remove('fish')
                  else
                     self:displace(other)
                  end
               end
}