Game Development Reference
In-Depth Information
A new jump is triggered by calling the setJumping() method. A true value can be
passed as an argument to denote that the jump key has been pressed. So this method
checks the current jump state of the bunny and also tests whether the jump key is
currently pressed by the player to perform the appropriate actions. These actions can
be to start a new jump, cancel an ongoing jump, or allow multijumps with the help of
the feather power-up.
The following diagram visualizes the flow of this method:
 
Search WWH ::




Custom Search