mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-12-01 16:27:27 +00:00
49bca1cc01
Co-Authored-By: Yuyake <140215214+AngelicMiracles@users.noreply.github.com> Co-Authored-By: FluffaMario <50761036+FluffaMario@users.noreply.github.com> Co-Authored-By: Gregory Heskett <gheskett@gmail.com> Co-Authored-By: iZePlayzYT <69536095+iZePlayzYT@users.noreply.github.com> Co-Authored-By: Isaac0-dev <62234577+Isaac0-dev@users.noreply.github.com> Co-Authored-By: eros71 <16540103+eros71-dev@users.noreply.github.com>
10 lines
No EOL
284 B
Lua
10 lines
No EOL
284 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) |