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