![]() |
Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
|
Data Structures | |
struct | GoombaProperties |
Properties that vary based on goomba size. More... | |
Functions | |
void | bhv_goomba_triplet_spawner_update (void) |
Update function for goomba triplet spawner. More... | |
void | bhv_goomba_init (void) |
Initialization function for goomba. More... | |
static void | goomba_begin_jump (void) |
Enter the jump action and set initial y velocity. More... | |
static void | mark_goomba_as_dead (void) |
If spawned by a triplet spawner, mark the flag in the spawner to indicate that this goomba died. More... | |
static void | goomba_act_walk (void) |
Walk around randomly occasionally jumping. More... | |
static void | goomba_act_attacked_mario (void) |
This action occurs when either the goomba attacks mario normally, or mario attacks a huge goomba with an attack that doesn't kill it. More... | |
static void | goomba_act_jump (void) |
Move until landing, and rotate toward target yaw. More... | |
void | huge_goomba_weakly_attacked (void) |
Attack handler for when mario attacks a huge goomba with an attack that doesn't kill it. More... | |
void | bhv_goomba_update (void) |
Update function for goomba. More... | |
Variables | |
static struct ObjectHitbox | sGoombaHitbox |
Behavior for bhvGoomba and bhvGoombaTripletSpawner, Goombas can either be spawned individually, or spawned by a triplet spawner. More... | |
static struct GoombaProperties | sGoombaProperties [] |
Properties for regular, huge, and tiny goombas. More... | |
static u8 | sGoombaAttackHandlers [][6] |
Attack handlers for goombas. More... | |
Update function for goomba.
This action occurs when either the goomba attacks mario normally, or mario attacks a huge goomba with an attack that doesn't kill it.
This can happen even when the goomba is already in the air. It's
Move until landing, and rotate toward target yaw.
If we move outside the goomba's drawing radius the frame it enters the
Walk around randomly occasionally jumping.
If mario comes within range, chase him.
By strategically hitting a wall, steep slope, or another goomba, we can
It seems theoretically possible to get 2-3 goombas to repeatedly touch
Attack handler for when mario attacks a huge goomba with an attack that doesn't kill it.
From the goomba's perspective, this is the same as the goomba attacking mario.
If spawned by a triplet spawner, mark the flag in the spawner to indicate that this goomba died.
This prevents it from spawning again when mario leaves and comes back.
|
static |
Attack handlers for goombas.
|
static |
Behavior for bhvGoomba and bhvGoombaTripletSpawner, Goombas can either be spawned individually, or spawned by a triplet spawner.
The triplet spawner comes before its spawned goombas in processing order. Hitbox for goomba.
|
static |
Properties for regular, huge, and tiny goombas.