2
image = 'data/goal.png',
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
the.goalsAchieved = the.goalsAchieved + 1
10
local goals = the.view.goals[tonumber(self.map)]
11
for k, v in pairs(goals) do
13
table.remove(goals, k)
16
the.view.objects:remove(self)
18
if the.goalsAchieved == 4 then
19
WinView:new():activate()
b'\\ No newline at end of file'