Skip to content

Commit

Permalink
Merge pull request #36 from casonpollak/ethan
Browse files Browse the repository at this point in the history
Update v0.1.17.2 - Ethan
  • Loading branch information
Parallaxes authored Dec 11, 2024
2 parents 989c40d + 44617e2 commit 675e666
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/platformer/Mushroom.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ export class Mushroom extends Character {
// Apply speed boost to player here
const player = GameEnv.player;
if (player) {
player.speed *= 2; // Double the player's speed
player.speed *= 1.2; // Double the player's speed
setTimeout(() => {
player.speed /= 2; // Reset speed after 5 seconds
player.speed /= 1.2; // Reset speed after 5 seconds
}, 5000); // Duration of the boost
}
setTimeout((function() {
Expand Down

0 comments on commit 675e666

Please sign in to comment.