Fix power to energy before shooting
This commit is contained in:
1 parent
f98bba041f
commit
0b58488e26
1 file changed
+1
@@ -73,6 +73,7 @@ function update() {
|
||||
const player = players[currentPlayer];
|
||||
const {x, y, a, p, weapons, energy} = player;
|
||||
const maxPower = energy * PLAYER_ENERGY_POWER_MULTIPLIER;
|
||||
player.p = clamp(0, player.p, maxPower);
|
||||
const isPrecise = key('Alt');
|
||||
const isFast = key('Shift');
|
||||
const isReverse = key('Shift');
|
||||
|
||||
Reference in new issue
Block a user