/ld27

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

« back to all changes in this revision

Viewing changes to goal.lua

  • Committer: Josh C
  • Date: 2013-08-25 00:32:21 UTC
  • Revision ID: josh@9ix.org-20130825003221-632jbug07yhqabuo
pick up goals

Show diffs side-by-side

added added

removed removed

1
1
Goal = Tile:extend{
2
2
   image = 'data/goal.png',
3
 
   velocity = {rotation = 2}
 
3
   velocity = {rotation = 2},
 
4
   ping = love.audio.newSource('data/Pickup_Coin7.wav', 'static'),
 
5
   onCollide = function(self, other)
 
6
                  love.audio.play(self.ping)
 
7
 
 
8
                  self:die()
 
9
                  the.view.goals[tonumber(self.map)] = nil
 
10
                  the.view.objects:remove(self)
 
11
               end
4
12
}
 
 
'\\ No newline at end of file'