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

Functions

static void bird_act_inactive (void)
 Behavior for bhvBird. More...
 
static void bird_act_fly (void)
 Make the bird fly. More...
 
void bhv_bird_update (void)
 Update function for bhvBird. More...
 

Function Documentation

◆ bhv_bird_update()

void bhv_bird_update ( void  )

Update function for bhvBird.

◆ bird_act_fly()

static void bird_act_fly ( void  )
static

Make the bird fly.

The bird flies laterally towards a target; (-20, -3990) if it's a spawner bird, and the parent spawner bird if it's a spawned bird.

◆ bird_act_inactive()

static void bird_act_inactive ( void  )
static

Behavior for bhvBird.

These are the birds in the castle grounds that fly away and scatter when Mario comes near them. There are 2 types of birds; spawner birds and spawned birds. Spawner birds are loaded by the level, and are inactive until Mario comes within 2000 units of them, when they spawn 6 spawned birds and start flying. Spawned birds are only spawned by a spawner bird, and start flying immediately after spawning. If the object is a spawned bird, start flying; if it's a spawner bird, spawn spawned birds if Mario comes within 2000 units of it.