summaryrefslogtreecommitdiff
path: root/src/enhancements/moon_jump.c
blob: b3fc44f2ade76dfb3fe7136703f4cde5c7620ccb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <libultraship.h>
#include "main.h"
#include "code_800029B0.h"
#include "common_structs.h"

void moon_jump(Player* player, struct Controller* controller) {
    if (controller->button & L_TRIG) {
        if (player->velocity[1] <= 3.2f) {
            player->velocity[1] += 0.5f;
        }
    }
}