Skip to content

Commit 252e003

Browse files
committed
fix water, add missing credits, fix being able to jump before you're supposed to
1 parent 754bddf commit 252e003

File tree

4 files changed

+25
-9
lines changed

4 files changed

+25
-9
lines changed

levels/bob/texscroll.inc.c

+14-4
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,18 @@ void scroll_bob_dl_Water_mesh_layer_5_vtx_0() {
7777
currentY += deltaY;
7878

7979
}
80+
void epicscroll() {
81+
Gfx *mat = segmented_to_virtual(mat_bob_dl_epicWater_layer5);
82+
shift_s_down(mat, 13, PACK_TILESIZE(0, 1));
83+
shift_t_down(mat, 13, PACK_TILESIZE(0, 1));
84+
shift_s(mat, 21, PACK_TILESIZE(0, 1));
85+
shift_t(mat, 21, PACK_TILESIZE(0, 1));
86+
};
87+
88+
8089
void scroll_bob() {
81-
scroll_bob_dl_LavaPuddle_mesh_layer_1_vtx_0();
82-
scroll_bob_dl_LavaPuddle_mesh_layer_1_vtx_3();
83-
scroll_bob_dl_Water_mesh_layer_5_vtx_0();
84-
}
90+
scroll_bob_dl_LavaPuddle_mesh_layer_1_vtx_0();
91+
scroll_bob_dl_LavaPuddle_mesh_layer_1_vtx_3();
92+
//scroll_bob_dl_Water_mesh_layer_5_vtx_0();
93+
epicscroll();
94+
}

src/game/hud.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ void render_credits(void) {
297297
if (gMarioState->creditsTimer > 0 && gMarioState->creditsTimer < 90 ) {
298298
print_text(10, 220, "HACK BY REONU");
299299
}
300-
if (gMarioState->creditsTimer >= 90 && gMarioState->creditsTimer < 750 ) {
300+
if (gMarioState->creditsTimer >= 90 && gMarioState->creditsTimer < 840 ) {
301301
print_text(10, 220, "SPECIAL THANKS TO:");
302302
}
303303
if (gMarioState->creditsTimer >= 90 && gMarioState->creditsTimer < 180 ) {
@@ -332,6 +332,10 @@ void render_credits(void) {
332332
print_text(10, 180, "AXOLLYON");
333333
print_text(10, 160, "PLAYTESTING");
334334
}
335+
if (gMarioState->creditsTimer >= 750 && gMarioState->creditsTimer < 840 ) {
336+
print_text(10, 200, "THECOZIES");
337+
print_text(10, 180, "EPIC WATER EFFECT");
338+
}
335339
gMarioState->creditsTimer++;
336340
}
337341

src/game/mario.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include "rumble_init.h"
3535
#include "include/seq_ids.h"
3636

37-
//#define DEBUG
37+
#define DEBUG
3838

3939
u32 unused80339F10;
4040
s8 filler80339F1C[20];
@@ -1319,7 +1319,7 @@ void update_mario_button_inputs(struct MarioState *m) {
13191319
m->showMovesetTimer = 90;
13201320
m->showMoveset = 0;
13211321
}
1322-
m->creditsTimer = 750;
1322+
m->creditsTimer = 840;
13231323
}
13241324
if (m->debugMode == 1) {
13251325
if (m->controller->buttonPressed & R_JPAD) {
@@ -1814,7 +1814,7 @@ void func_sh_8025574C(void) {
18141814
s32 execute_mario_action(UNUSED struct Object *o) {
18151815
s32 inLoop = TRUE;
18161816

1817-
if ((gMarioState->numStars == 0) && (gMarioState->creditsTimer < 810)) {
1817+
if ((gMarioState->numStars == 0) && (gMarioState->creditsTimer < 840)) {
18181818
render_credits();
18191819
}
18201820
if ((gMarioState->action & ACT_FLAG_SWIMMING) && (gMarioState->pos[1] < -2700)) {

src/game/mario_actions_stationary.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,9 @@ s32 check_common_landing_cancels(struct MarioState *m, u32 action) {
856856

857857
if (m->input & INPUT_A_PRESSED) {
858858
if (!action) {
859-
return set_jump_from_landing(m);
859+
if (m->canJump || m->unlockEverything) {
860+
return set_jump_from_landing(m);
861+
}
860862
} else {
861863
return set_jumping_action(m, action, 0);
862864
}

0 commit comments

Comments
 (0)