remove dead code
This commit is contained in:
parent
37c51d7db8
commit
4cba1f49ef
2 changed files with 0 additions and 6 deletions
|
@ -119,8 +119,6 @@ export class Env {
|
||||||
!player.animation(ennemies.map((object) => object.data))
|
!player.animation(ennemies.map((object) => object.data))
|
||||||
) {
|
) {
|
||||||
// If animation returned false, the player died!
|
// If animation returned false, the player died!
|
||||||
player.deadAnimation();
|
|
||||||
|
|
||||||
playerDead = true;
|
playerDead = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -110,8 +110,4 @@ export class Player extends Cube {
|
||||||
// No ennemies found
|
// No ennemies found
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
deadAnimation = () => {
|
|
||||||
console.log("player died!");
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue