increase player speed
This commit is contained in:
parent
cfdad79207
commit
cad05ad895
@ -19,7 +19,7 @@ class Player {
|
|||||||
this.role = position; // 'LW', 'C', 'RW', 'LD', 'RD', 'G'
|
this.role = position; // 'LW', 'C', 'RW', 'LD', 'RD', 'G'
|
||||||
this.radius = position === 'G' ? 20 : 12;
|
this.radius = position === 'G' ? 20 : 12;
|
||||||
this.mass = position === 'G' ? 2 : 1;
|
this.mass = position === 'G' ? 2 : 1;
|
||||||
this.maxSpeed = position === 'G' ? 150 : 200;
|
this.maxSpeed = position === 'G' ? 200 : 280;
|
||||||
this.acceleration = 800;
|
this.acceleration = 800;
|
||||||
this.restitution = 0.8;
|
this.restitution = 0.8;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user