Difference between revisions of "Behavior"
Jump to navigation
Jump to search
(Created page with "A behavior basically is a script describing how an object shall behave. The original behavior scripts can be found in '''data/behavior_data.c'''. == Native code...") |
|||
Line 18: | Line 18: | ||
* [[Custom behavior]] | * [[Custom behavior]] | ||
* [[Geometry layout]] | * [[Geometry layout]] | ||
+ | [[Category:Level]] |
Revision as of 19:32, 8 November 2020
A behavior basically is a script describing how an object shall behave. The original behavior scripts can be found in data/behavior_data.c.
Native code
Behavior script can do a lot with the object they are attached to. Additional code can be added natively in C. Original behavior code is located in src/game/behaviors.
Actors
Actors basically describe the appearance of an object, including 3D models, textures and animations. Original actors are located in sub-folders in actors.
An actor usual contains the following data:
- Unique texture files (might be hardcoded in C if exported from an editor)
- model.inc.c file describing 3D models including UV coordinates and vertex colors
- geo.inc.c file
- anims sub-folder