mirror of
https://github.com/OpenLiberty/liberty-bikes.git
synced 2025-01-18 10:23:58 +08:00
Remove BAM sound
This commit is contained in:
parent
51b7a932da
commit
a6bf535464
@ -4,8 +4,6 @@ import { Assets } from '../game/assets';
|
||||
import { Constants } from '../game/constants';
|
||||
|
||||
export class Player {
|
||||
static audioLoaded = false;
|
||||
|
||||
displayObject: Container;
|
||||
|
||||
get object() {
|
||||
@ -103,11 +101,6 @@ export class Player {
|
||||
this.explosionImage.x = this.image.x;
|
||||
this.explosionImage.y = this.image.y;
|
||||
this.displayObject.addChild(this.explosionImage);
|
||||
if (!Player.audioLoaded) {
|
||||
Player.audioLoaded = true;
|
||||
Assets.BAM.load();
|
||||
}
|
||||
Assets.BAM.play();
|
||||
}
|
||||
this.status = status;
|
||||
}
|
||||
|
@ -9,5 +9,4 @@ export class Assets {
|
||||
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_DEAD_BITMAP = new Bitmap('../../assets/images/status_dead.png');
|
||||
static readonly BAM = new Audio('../../assets/sound/bam.wav');
|
||||
}
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user