Skip to Content
The Alchemy Project

include/field/field_sprite.h

An actor's sprite as the field's scenes read it.

Included by battle_effect_internal.h, field_engine_internal.h, script_commands_internal.h, atteka_inlet.c, gabomba_statue_chamber.c, gondowan_cliffs.c, islet_cave.c, kibombo.c, lemuria_entrance.c, lemurian_ship.c, lemurian_ship_deck.c, madra_rooms.c, mars_lighthouse_hall.c, mars_lighthouse_star_room.c, mercury_lighthouse.c, northern_reaches.c, shaman_village_cave.c, cracked_tile_mask.c, world_map_objects.c, staff_credit.c, taopo_swamp.c, venus_lighthouse_entrance.c, world_map.c, yallam.c, window_internal.h and field_script.h.

Structures

NameDescription
structFIELD_SPRSPR (field/sprite.h) as the field's scenes read it: its image's OAM attributes as bit fields, its retain, own-scale and sunk-rows bits, its layer count and its shadow's first two attributes as bytes, and its shadow's attribute 2 as bit fields; the first layer is record.

Macros

NameDescription
#defineSCENE_SPRITE_DEPTH 58The depth a sprite the scene draws itself takes past its screen row, just behind an actor's image (+ PLACEMENT_IMAGE_DEPTH, field/field.h) and shadow (two slots less) at the same spot: light sprites, a hole's mask, map metatile sprites, fountains and ropes.

Description

An actor's sprite as the field's scenes read it.

Macros in detail

SCENE_SPRITE_DEPTH

#define SCENE_SPRITE_DEPTH 58

The depth a sprite the scene draws itself takes past its screen row, just behind an actor's image (+ PLACEMENT_IMAGE_DEPTH, field/field.h) and shadow (two slots less) at the same spot: light sprites, a hole's mask, map metatile sprites, fountains and ropes.

Referenced by btGeyserDraw(), scCrackedTileUpdate(), scLightSpritesDraw() and scMarsLighthouseEntranceDrawHoleMask().

Definition at line 78 of file field_sprite.h.