Merge pull request #94 from aguibert/bam

BAM
This commit is contained in:
Andrew Guibert 2018-05-11 17:30:23 -05:00 committed by GitHub
commit a0abb0a1a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -51,14 +51,17 @@ export class Player {
}
public setStatus(status: string) {
this.status = status;
if (status === 'Dead') {
if (status === 'Dead' && this.status !== 'Dead') {
this.image = new Bitmap('../../assets/images/status_dead.png');
this.image.scaleX = 0.7;
this.image.scaleY = 0.7;
this.image.x = this.x - 10;
this.image.y = this.y - 10;
var bam = new Audio('../../assets/sound/bam.wav');
bam.load();
bam.play();
}
this.status = status;
}
public addTo(stage: Stage) {

Binary file not shown.