vitesse fantomes parfais
This commit is contained in:
4
game.js
4
game.js
@ -491,7 +491,7 @@ class Ghost {
|
||||
|
||||
// Ajustements selon le type
|
||||
if (type === GHOST_FAST) {
|
||||
this.baseSpeed = 0.25;
|
||||
this.baseSpeed = 0.16;
|
||||
} else if (type === GHOST_INVISIBLE && level >= 5) {
|
||||
this.isInvisible = true;
|
||||
this.invisibleTimer = 300;
|
||||
@ -503,7 +503,7 @@ class Ghost {
|
||||
let speedMultiplier = 1.4;
|
||||
|
||||
if (this.type === GHOST_FAST) {
|
||||
speedMultiplier *= 1.5;
|
||||
speedMultiplier *= 1.1;
|
||||
}
|
||||
this.speed = this.baseSpeed * speedMultiplier;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user