default health
This commit is contained in:
parent
b47c1e1e83
commit
39907854f2
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ const playerSize = 50.;
|
|||
const playerSpeed=.2;
|
||||
const bulletSpeed=playerSpeed*2;
|
||||
const halfSqrtTwo=0.70710678118;
|
||||
const defaulthealth=10
|
||||
|
||||
class Player
|
||||
{
|
||||
|
@ -24,7 +25,7 @@ class Player
|
|||
//7=West
|
||||
//8=North-West
|
||||
this.ammo=10;
|
||||
this.health=10;
|
||||
this.health=defaulthealth;
|
||||
this.kill=0;
|
||||
this.death=0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue