You've already forked Microtransactions64
mirror of
https://github.com/Print-and-Panic/Microtransactions64.git
synced 2026-01-21 10:17:19 -08:00
Add goddard as togglable and stop linking segments seperately
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "engine/math_util.h"
|
||||
#include "envfx_snow.h"
|
||||
#include "game_init.h"
|
||||
#include "goddard/renderer.h"
|
||||
#include "interaction.h"
|
||||
#include "level_update.h"
|
||||
#include "mario_misc.h"
|
||||
@@ -77,6 +78,29 @@ struct GraphNodeObject gMirrorMario; // copy of Mario's geo node for drawing mi
|
||||
// (message NPC related things, the Mario head geo, and Mario geo
|
||||
// functions)
|
||||
|
||||
#ifdef GODDARD
|
||||
/**
|
||||
* Geo node script that draws Mario's head on the title screen.
|
||||
*/
|
||||
Gfx *geo_draw_mario_head_goddard(s32 callContext, struct GraphNode *node, Mat4 *c) {
|
||||
Gfx *gfx = NULL;
|
||||
s16 sfx = 0;
|
||||
struct GraphNodeGenerated *asGenerated = (struct GraphNodeGenerated *) node;
|
||||
UNUSED Mat4 *transform = c;
|
||||
|
||||
if (callContext == GEO_CONTEXT_RENDER) {
|
||||
if (gPlayer1Controller->controllerData != NULL && !gWarpTransition.isActive) {
|
||||
gd_copy_p1_contpad(gPlayer1Controller->controllerData);
|
||||
}
|
||||
gfx = (Gfx *) PHYSICAL_TO_VIRTUAL(gdm_gettestdl(asGenerated->parameter));
|
||||
gGoddardVblankCallback = gd_vblank;
|
||||
sfx = gd_sfx_to_play();
|
||||
play_menu_sounds(sfx);
|
||||
}
|
||||
return gfx;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void toad_message_faded(void) {
|
||||
if (gCurrentObject->oDistanceToMario > 700.0f) {
|
||||
gCurrentObject->oToadMessageRecentlyTalked = FALSE;
|
||||
|
||||
Reference in New Issue
Block a user