User:Deldee/objectAnatomyDraft
The following is a draft a full article on the object processes, to help debugging them for newcomers :
Rough draft, using goomba as an example:
Init - > data/behavior_data.c
Set OBJ_LIST - > Object Groups
Set OBJ Flag - > Nothing
Load animation or Model - > Actor groups and Actors list
Set object specific values (Home, physic, drop to floor) - > TODO
Call Native Behavior (init behavior) - > Behavior Lists
- This will also set the hitbox, which is usually a struct defined in the same file, but can be different files (boulder for example)
Begin Behavior Loop
- Call loop behavior - > Behavior Lists
End Loop