/ld26

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

« back to all changes in this revision

Viewing changes to items.lua

  • Committer: Josh C
  • Date: 2013-04-28 22:13:30 UTC
  • Revision ID: josh@9ix.org-20130428221330-duv67kmceabcitda
troll

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
                     the.app.view:remove(self)
26
26
                  end
27
27
               end
28
 
}
29
 
 
30
 
Flag = Sprite:extend{
31
 
   name = 'flag',
32
 
   invTile = Tile:new{image = 'data/flag.png'},
33
 
   onCollide = function(self, other, xOl, yOl)
34
 
                  if the.inventory.items['flower'] then
35
 
                     the.inventory:add(self)
36
 
                     --the.app.view:remove(self)
37
 
 
38
 
                     the.inventory:remove('flower')
39
 
                  end
40
 
 
41
 
                  self:displace(other)
42
 
               end
43
 
}
44
 
 
 
28
}
 
 
b'\\ No newline at end of file'