/ld26

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

« back to all changes in this revision

Viewing changes to troll.lua

  • Committer: Josh C
  • Date: 2013-04-28 22:26:28 UTC
  • Revision ID: josh@9ix.org-20130428222628-iw5am8h8mrzedutb
really basic feedback that your inventory changed

Show diffs side-by-side

added added

removed removed

2
2
   image = 'data/troll.png',
3
3
   onCollide = function(self, other, xOl, yOl)
4
4
                  if the.inventory.items['fish'] then
5
 
                     self.y = self.y - self.height
 
5
                     self:die()
6
6
                     the.inventory:remove('fish')
7
7
                  else
8
8
                     self:displace(other)