source/rover.c
void rover_jump(struct Rover* rover) {
    /* no double jumps allowed */
    if (!rover->jumping) {
        /* begin moving up! */
        rover->dy = -JUMP_SPEED;
        rover->jumping = 1;
        play_sound(jump_16K_mono, jump_16K_mono_bytes, 16000, 'B');
    }
}
/* jump the rover into the air */
jump the rover into the air
jump the rover into the air
void rover_jump(struct Rover* rover) {
    if (!rover->jumping) {
        rover->dy = -JUMP_SPEED;
        rover->jumping = 1;
        play_sound(jump_16K_mono, jump_16K_mono_bytes, 16000, 'B');
    }
}
void rover_jump ( struct Rover * rover ) { if ( ! rover -> jumping ) { rover -> dy = - JUMP_SPEED ; rover -> jumping = 1 ; play_sound ( jump_16K_mono , jump_16K_mono_bytes , 16000 , ' ' ) ; } }
jump the rover into the air
jump the rover into the air
/* no double jumps allowed */ /* begin moving up! */