Files

11 lines
288 B
Lua
Raw Permalink Normal View History

2023-10-30 01:03:36 -04:00
-- name: MoonJump
-- description: Hold the A button to Moonjump
2024-07-13 15:46:41 -03:00
local function mario_update(m)
if (m.controller.buttonDown & A_BUTTON) ~= 0 then --If the A button is held
2023-10-30 01:03:36 -04:00
m.vel.y = 25 --Set Y velocity to 25
end
end
-- hooks --
2022-03-19 04:30:53 +00:00
hook_event(HOOK_MARIO_UPDATE, mario_update)