Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Functions | Variables
enemy_lakitu.inc.c File Reference

Functions

static void enemy_lakitu_act_uninitialized (void)
 Wait for mario to approach, then spawn the cloud and become visible. More...
 
static void enemy_lakitu_update_vel_y (f32 offsetY)
 Accelerate toward mario vertically. More...
 
static void enemy_lakitu_update_speed_and_angle (void)
 Control speed based on distance to mario, turn toward mario, and change move angle toward mario. More...
 
static void enemy_lakitu_sub_act_no_spiny (void)
 When close enough to mario and facing roughly toward him, spawn a spiny and hold it, then enter the hold spiny sub-action. More...
 
static void enemy_lakitu_sub_act_hold_spiny (void)
 When close to mario and facing toward him or when mario gets far enough away, enter the throw spiny sub-action. More...
 
static void enemy_lakitu_sub_act_throw_spiny (void)
 Throw the spiny, then enter the no spiny sub-action. More...
 
static void enemy_lakitu_act_main (void)
 Main update function. More...
 
void bhv_enemy_lakitu_update (void)
 Update function for bhvEnemyLakitu. More...
 

Variables

static struct ObjectHitbox sEnemyLakituHitbox
 Behavior for bhvEnemyLakitu. More...
 

Function Documentation

◆ bhv_enemy_lakitu_update()

void bhv_enemy_lakitu_update ( void  )

Update function for bhvEnemyLakitu.

◆ enemy_lakitu_act_main()

static void enemy_lakitu_act_main ( void  )
static

Main update function.

◆ enemy_lakitu_act_uninitialized()

static void enemy_lakitu_act_uninitialized ( void  )
static

Wait for mario to approach, then spawn the cloud and become visible.

◆ enemy_lakitu_sub_act_hold_spiny()

static void enemy_lakitu_sub_act_hold_spiny ( void  )
static

When close to mario and facing toward him or when mario gets far enough away, enter the throw spiny sub-action.

◆ enemy_lakitu_sub_act_no_spiny()

static void enemy_lakitu_sub_act_no_spiny ( void  )
static

When close enough to mario and facing roughly toward him, spawn a spiny and hold it, then enter the hold spiny sub-action.

◆ enemy_lakitu_sub_act_throw_spiny()

static void enemy_lakitu_sub_act_throw_spiny ( void  )
static

Throw the spiny, then enter the no spiny sub-action.

◆ enemy_lakitu_update_speed_and_angle()

static void enemy_lakitu_update_speed_and_angle ( void  )
static

Control speed based on distance to mario, turn toward mario, and change move angle toward mario.

◆ enemy_lakitu_update_vel_y()

static void enemy_lakitu_update_vel_y ( f32  offsetY)
static

Accelerate toward mario vertically.

Variable Documentation

◆ sEnemyLakituHitbox

struct ObjectHitbox sEnemyLakituHitbox
static
Initial value:
= {
0,
2,
0,
5,
50,
50,
40,
50,
}
#define INTERACT_HIT_FROM_BELOW
Definition: interaction.h:28

Behavior for bhvEnemyLakitu.

Lakitu comes before it spawned spinies in processing order. TODO: bhvCloud processing oredr Hitbox for evil lakitu.