-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, when the player stomped an enemy the enemy would set the player's vertical velocity directly. Instead, have the enemy call a new stomp() method on the player, which internally triggers a jump having disarmed the double-jump. This makes a difference in the following cases: - If the player has a jump buffered, stomping on the enemy now consumes that jump. - If the player is holding the jump key (because they buffered a jump) they can curtail the height of bouncing off the enemy. - If double jump is enabled, it is now armed by stomping an enemy.
- Loading branch information
Showing
2 changed files
with
18 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters