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) |
|
7 |
||
8 |
self:die() |
|
9 |
the.view.goals[tonumber(self.map)] = nil |
|
10 |
the.view.objects:remove(self) |
|
11 |
end |
|
8
by Josh C
goal... thing |
12 |
} |