/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 16:04:57 UTC
  • Revision ID: josh@9ix.org-20130825160457-m0le8k88t0i2ooun
win screen activate!

Show diffs side-by-side

added added

removed removed

4
4
   ping = love.audio.newSource('data/Pickup_Coin7.wav', 'static'),
5
5
   onCollide = function(self, other)
6
6
                  love.audio.play(self.ping)
 
7
                  the.goalsAchieved = the.goalsAchieved + 1
7
8
 
8
9
                  self:die()
9
10
                  the.view.goals[tonumber(self.map)] = nil
10
11
                  the.view.objects:remove(self)
 
12
 
 
13
                  if the.goalsAchieved == 3 then
 
14
                     WinView:new():activate()
 
15
                  end
11
16
               end
12
17
}
 
 
'\\ No newline at end of file'