1
0
Fork 0

Added laser sound effect

This commit is contained in:
Michaël Lemaire 2017-10-05 19:50:59 +02:00
parent 5337abc056
commit 58b166a351
4 changed files with 3 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View file

@ -73,6 +73,7 @@ module TK.SpaceTac.UI {
this.loadSound("ui/drag.wav");
this.loadSound("ui/drop.wav");
this.loadSound("battle/ship-change.wav");
this.loadSound("battle/weapon-laser.wav");
this.loadSound("battle/weapon-bullets.wav");
this.loadSound("battle/weapon-missile-launch.wav");
this.loadSound("battle/weapon-missile-explosion.wav");

View file

@ -229,6 +229,8 @@ module TK.SpaceTac.UI {
angularLaser(source: IArenaLocation, radius: number, start_angle: number, end_angle: number, speed = 1): number {
let duration = 1000 / speed;
this.view.audio.playOnce("battle-weapon-laser");
let laser = this.view.newImage("battle-effects-laser", source.x, source.y);
laser.anchor.set(0, 0.5);
laser.rotation = start_angle;