default health

This commit is contained in:
Baptiste 2023-12-07 09:03:23 +01:00
parent b47c1e1e83
commit 39907854f2

View file

@ -4,6 +4,7 @@ const playerSize = 50.;
const playerSpeed=.2; const playerSpeed=.2;
const bulletSpeed=playerSpeed*2; const bulletSpeed=playerSpeed*2;
const halfSqrtTwo=0.70710678118; const halfSqrtTwo=0.70710678118;
const defaulthealth=10
class Player class Player
{ {
@ -24,7 +25,7 @@ class Player
//7=West //7=West
//8=North-West //8=North-West
this.ammo=10; this.ammo=10;
this.health=10; this.health=defaulthealth;
this.kill=0; this.kill=0;
this.death=0; this.death=0;
} }