/ld27

To get this branch, use:
bzr branch http://9ix.org/bzr/ld27
8 by Josh C
goal... thing
1
Goal = Tile:extend{
2
   image = 'data/goal.png',
15 by Josh C
pick up goals
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)
23 by Josh C
win screen activate!
7
                  the.goalsAchieved = the.goalsAchieved + 1
15 by Josh C
pick up goals
8
9
                  self:die()
32 by Josh C
actually handle multiple goals in one maze
10
                  local goals = the.view.goals[tonumber(self.map)]
11
                  for k, v in pairs(goals) do
12
                     if v == self then
13
                        table.remove(goals, k)
14
                     end
15
                  end
15 by Josh C
pick up goals
16
                  the.view.objects:remove(self)
23 by Josh C
win screen activate!
17
31 by Josh C
moved the shinies. added one more.
18
                  if the.goalsAchieved == 4 then
23 by Josh C
win screen activate!
19
                     WinView:new():activate()
20
                  end
15 by Josh C
pick up goals
21
               end
8 by Josh C
goal... thing
22
}