mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 20:15:17 +00:00
10 lines
No EOL
293 B
Lua
10 lines
No EOL
293 B
Lua
-- name: MoonJump
|
|
-- description: Hold the A button to Moonjump
|
|
function mario_update(m)
|
|
if (m.controller.buttonDown & A_BUTTON) ~= 0 then --If the A button is pressed
|
|
m.vel.y = 25 --Set Y velocity to 25
|
|
end
|
|
end
|
|
|
|
-- hooks --
|
|
hook_event(HOOK_MARIO_UPDATE, mario_update) |