The field object: the engine of the field and the world map. More...
Go to the source code of this file.
The field object: the engine of the field and the world map.
It draws and animates sprites, keeps the 64 field objects and runs their scripts, moves the player by the keys, loads, draws and scrolls the maps, and answers what the ground is like under a point. field_internal.h holds what the parts share; the parts under field/ are included here in the order their code has in the ROM. Camelot's own files are not recoverable: the ROM shows one object, and these parts are ours, cut where one family ends and the next begins.
README.md in this folder gives the words, prefixes and spellings the parts use. Where to start:
Sprites sprite_draw.c: Sprite_ComposeAnimationFrame, Render_PlaceProjectedSprite; animation.c: ResourceObject_Create, AnimationObjects_SelectAnimation Objects objects.c: FieldObject_Create, ObjectSystem_Initialize; object_motion.c: Object_UpdateAllThumb, Object_SetMoveTarget Object scripts script_commands.c (the SC_ commands of objcmd.h); player_control.c: FieldObject_UpdatePlayerControl Maps map_layers.c: Map_LoadLayeredScene, Map_UpdateLayerScroll; world_map.c: Map_InitializePerspectiveScene, WorldMap_UpdateView Ground terrain.c: Map_GetTerrainHeight, Map_CheckObjectStep, GetWorldMapCollision
Definition in file field.c.