Remove BAM sound

This commit is contained in:
Andrew Guibert 2018-06-29 10:27:36 -05:00
parent 51b7a932da
commit a6bf535464
3 changed files with 0 additions and 8 deletions

View File

@ -4,8 +4,6 @@ import { Assets } from '../game/assets';
import { Constants } from '../game/constants'; import { Constants } from '../game/constants';
export class Player { export class Player {
static audioLoaded = false;
displayObject: Container; displayObject: Container;
get object() { get object() {
@ -103,11 +101,6 @@ export class Player {
this.explosionImage.x = this.image.x; this.explosionImage.x = this.image.x;
this.explosionImage.y = this.image.y; this.explosionImage.y = this.image.y;
this.displayObject.addChild(this.explosionImage); this.displayObject.addChild(this.explosionImage);
if (!Player.audioLoaded) {
Player.audioLoaded = true;
Assets.BAM.load();
}
Assets.BAM.play();
} }
this.status = status; this.status = status;
} }

View File

@ -9,5 +9,4 @@ export class Assets {
static readonly PLAYER_ORANGE_BITMAP = new Bitmap('../../assets/images/bike_orange.png'); static readonly PLAYER_ORANGE_BITMAP = new Bitmap('../../assets/images/bike_orange.png');
static readonly PLAYER_PURPLE_BITMAP = new Bitmap('../../assets/images/bike_purple.png'); static readonly PLAYER_PURPLE_BITMAP = new Bitmap('../../assets/images/bike_purple.png');
static readonly PLAYER_DEAD_BITMAP = new Bitmap('../../assets/images/status_dead.png'); static readonly PLAYER_DEAD_BITMAP = new Bitmap('../../assets/images/status_dead.png');
static readonly BAM = new Audio('../../assets/sound/bam.wav');
} }