Alchemy
Loading...
Searching...
No Matches

ImpactChip Struct Reference

One chip of the impact, laid over the same 28-byte records as PARTICLES but with its velocities in other places than struct EffectStep's. More...

Data Fields

s32 x
 canvas position, 16.16 fixed point
s32 y
 canvas position, 16.16; the ground is y 112
s32 velocityX
 16.16 pixels a frame, damped to 56/64 each frame
s32 unused0c
 an EffectStep's velocityX; never read
s32 velocityY
 16.16 pixels a frame, with 1/8 pixel of gravity
s32 unused14
 an EffectStep's velocityZ; never read
s32 life
 frames left; 0 is free

Detailed Description

One chip of the impact, laid over the same 28-byte records as PARTICLES but with its velocities in other places than struct EffectStep's.

Definition at line 25 of file planet_diver.c.

Field Documentation

◆ x

s32 ImpactChip::x

canvas position, 16.16 fixed point

Definition at line 26 of file planet_diver.c.

Referenced by BattleFx_RunPlanetDiver().

◆ y

s32 ImpactChip::y

canvas position, 16.16; the ground is y 112

Definition at line 27 of file planet_diver.c.

Referenced by BattleFx_RunPlanetDiver().

◆ velocityX

s32 ImpactChip::velocityX

16.16 pixels a frame, damped to 56/64 each frame

Definition at line 28 of file planet_diver.c.

Referenced by BattleFx_RunPlanetDiver().

◆ unused0c

s32 ImpactChip::unused0c

an EffectStep's velocityX; never read

Definition at line 29 of file planet_diver.c.

◆ velocityY

s32 ImpactChip::velocityY

16.16 pixels a frame, with 1/8 pixel of gravity

Definition at line 30 of file planet_diver.c.

Referenced by BattleFx_RunPlanetDiver().

◆ unused14

s32 ImpactChip::unused14

an EffectStep's velocityZ; never read

Definition at line 31 of file planet_diver.c.

◆ life

s32 ImpactChip::life

frames left; 0 is free

Definition at line 32 of file planet_diver.c.

Referenced by BattleFx_RunPlanetDiver().