Skip to content

Commit

Permalink
fix water, add missing credits, fix being able to jump before you're …
Browse files Browse the repository at this point in the history
…supposed to
  • Loading branch information
Reonu committed Apr 25, 2021
1 parent 754bddf commit 252e003
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
18 changes: 14 additions & 4 deletions levels/bob/texscroll.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,18 @@ void scroll_bob_dl_Water_mesh_layer_5_vtx_0() {
currentY += deltaY;

}
void epicscroll() {
Gfx *mat = segmented_to_virtual(mat_bob_dl_epicWater_layer5);
shift_s_down(mat, 13, PACK_TILESIZE(0, 1));
shift_t_down(mat, 13, PACK_TILESIZE(0, 1));
shift_s(mat, 21, PACK_TILESIZE(0, 1));
shift_t(mat, 21, PACK_TILESIZE(0, 1));
};


void scroll_bob() {
scroll_bob_dl_LavaPuddle_mesh_layer_1_vtx_0();
scroll_bob_dl_LavaPuddle_mesh_layer_1_vtx_3();
scroll_bob_dl_Water_mesh_layer_5_vtx_0();
}
scroll_bob_dl_LavaPuddle_mesh_layer_1_vtx_0();
scroll_bob_dl_LavaPuddle_mesh_layer_1_vtx_3();
//scroll_bob_dl_Water_mesh_layer_5_vtx_0();
epicscroll();
}
6 changes: 5 additions & 1 deletion src/game/hud.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ void render_credits(void) {
if (gMarioState->creditsTimer > 0 && gMarioState->creditsTimer < 90 ) {
print_text(10, 220, "HACK BY REONU");
}
if (gMarioState->creditsTimer >= 90 && gMarioState->creditsTimer < 750 ) {
if (gMarioState->creditsTimer >= 90 && gMarioState->creditsTimer < 840 ) {
print_text(10, 220, "SPECIAL THANKS TO:");
}
if (gMarioState->creditsTimer >= 90 && gMarioState->creditsTimer < 180 ) {
Expand Down Expand Up @@ -332,6 +332,10 @@ void render_credits(void) {
print_text(10, 180, "AXOLLYON");
print_text(10, 160, "PLAYTESTING");
}
if (gMarioState->creditsTimer >= 750 && gMarioState->creditsTimer < 840 ) {
print_text(10, 200, "THECOZIES");
print_text(10, 180, "EPIC WATER EFFECT");
}
gMarioState->creditsTimer++;
}

Expand Down
6 changes: 3 additions & 3 deletions src/game/mario.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "rumble_init.h"
#include "include/seq_ids.h"

//#define DEBUG
#define DEBUG

u32 unused80339F10;
s8 filler80339F1C[20];
Expand Down Expand Up @@ -1319,7 +1319,7 @@ void update_mario_button_inputs(struct MarioState *m) {
m->showMovesetTimer = 90;
m->showMoveset = 0;
}
m->creditsTimer = 750;
m->creditsTimer = 840;
}
if (m->debugMode == 1) {
if (m->controller->buttonPressed & R_JPAD) {
Expand Down Expand Up @@ -1814,7 +1814,7 @@ void func_sh_8025574C(void) {
s32 execute_mario_action(UNUSED struct Object *o) {
s32 inLoop = TRUE;

if ((gMarioState->numStars == 0) && (gMarioState->creditsTimer < 810)) {
if ((gMarioState->numStars == 0) && (gMarioState->creditsTimer < 840)) {
render_credits();
}
if ((gMarioState->action & ACT_FLAG_SWIMMING) && (gMarioState->pos[1] < -2700)) {
Expand Down
4 changes: 3 additions & 1 deletion src/game/mario_actions_stationary.c
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,9 @@ s32 check_common_landing_cancels(struct MarioState *m, u32 action) {

if (m->input & INPUT_A_PRESSED) {
if (!action) {
return set_jump_from_landing(m);
if (m->canJump || m->unlockEverything) {
return set_jump_from_landing(m);
}
} else {
return set_jumping_action(m, action, 0);
}
Expand Down

0 comments on commit 252e003

Please sign in to comment.