Add sound effect for vickers gun

This commit is contained in:
Mikko Ahlroth 2014-10-18 19:46:00 +03:00
parent 2bca8ace54
commit 08bd5f0c12
2 changed files with 5 additions and 0 deletions

View file

@ -2,6 +2,8 @@ Class = require 'hump.class'
require 'entities/physicsentity'
require 'settings'
VICKERS_SOUND = love.audio.newSource("resources/audio/vickers77.mp3", "static")
Vickers77 = Class{
__includes = Rectangle,
@ -15,6 +17,9 @@ Vickers77 = Class{
Rectangle.init(self, x, y, level, "dynamic", 0.2, xsize, ysize, 1000, nil)
self.body:setBullet(true)
VICKERS_SOUND:rewind()
VICKERS_SOUND:play()
end;
update = function(self, dt)

Binary file not shown.