![]() |
Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
|
#include "types.h"
Go to the source code of this file.
Functions | |
void | print_displaying_credits_entry (void) |
print_displaying_credits_entry: Print the current displaying Credits Entry Called in render_game. More... | |
void | BehEndPeachLoop (void) |
void | BehEndToadLoop (void) |
s32 | geo_switch_peach_eyes (s32 run, struct GraphNode *node, UNUSED s32 a2) |
s32 | mario_ready_to_speak (void) |
mario_ready_to_speak: Determine if Mario is able to speak to a NPC The following conditions must be met in order for Mario to be considered ready to speak. More... | |
s32 | set_mario_npc_dialog (s32) |
s32 | mario_execute_cutscene_action (struct MarioState *) |
s32 mario_execute_cutscene_action | ( | struct MarioState * | ) |
mario_ready_to_speak: Determine if Mario is able to speak to a NPC The following conditions must be met in order for Mario to be considered ready to speak.
1: Mario's action must be in the stationary or moving action groups, or if not, he must be in the "waiting for dialog" state. 2: Mario mat not be riding a shell or be invulnerable. 3: Mario must not be in first person mode.
print_displaying_credits_entry: Print the current displaying Credits Entry Called in render_game.
This function checks if sDispCreditsEntry points to a credits entry (see act_credits_cutscene), and if so, display it. The reason this is called every frame in render_game is because the credits need to display on top of everything else. To print a credits entry, we take the first character of the first string, subtract the value of the 0 character, and use that as the number of lines to print, excluding the title. Then, we print the title (after advancing the pointer by 1) at X 28, Y either 28 or 172, depending on the print at bottom flag. Finally, we print each line using the number of lines previously stored as a counter, and increase the Y value by either the constant 16 (JP only) or by the value of lineHeight.