ghost2_common.zh#

Variables#

const int

__GHI_DRAW_COMBO

const int

__GHI_DRAW_CSET

const int

__GHI_DRAW_X

const int

__GHI_DRAW_Y

const int

__GHI_DRAW_WIDTH

const int

__GHI_DRAW_HEIGHT

const int

__GHI_DRAW_ADDITIONAL

const int

__GHI_DRAW_LAYER

const int

__GHI_DRAW_OPACITY

const int

__GHI_DRAW_ARRAY_SIZE

const int

__GHI_AC_COUNT

const int

__GHI_AC_DATA

const int

__GH_AC_COMBO

const int

__GH_AC_X

const int

__GH_AC_Y

const int

__GH_AC_WIDTH

const int

__GH_AC_HEIGHT

const int

__GH_AC_ROTATION

const int

__GH_AC_MAX_ADDITIONAL_COMBOS

const int

__GH_AC_DATA_SIZE

const int

ENPROP_X

const int

ENPROP_Y

const int

ENPROP_Z

const int

ENPROP_JUMP

const int

ENPROP_DIR

const int

ENPROP_HP

const int

ENPROP_CSET

const int

GHD_EXPLODE

const int

GHD_EXPLODE_FLASH

const int

GHD_SHRINK

int

Ghost_X

int

Ghost_Y

int

Ghost_Z

int

Ghost_Dir

int

Ghost_Jump

int

Ghost_Vx

int

Ghost_Vy

int

Ghost_Ax

int

Ghost_Ay

int

Ghost_Data

int

Ghost_CSet

int

Ghost_TileWidth

int

Ghost_TileHeight

int

Ghost_HP

int

__Ghost_Flags

int

__Ghost_Flags2

int

__Ghost_InternalFlags

int

__Ghost_PrevX

int

__Ghost_PrevY

int

__Ghost_FlashCounter

int

__Ghost_KnockbackCounter

int

__Ghost_XOffsets

int

__Ghost_YOffsets

int[]

__Ghost_Scripts

int[]

__Ghost_AdditionalCombos

int[]

__ghzhData

const int

__GHI_GLOBAL_FLAGS

const int

__GHI_FLASH_COUNTER

const int

__GHI_SHADOW_FRAME

const int

__GHI_SHADOW_TIMER

const int

__GHI_LARGE_SHADOW_FRAME

const int

__GHI_LARGE_SHADOW_TIMER

const int

__GHI_CLOCK_TIMER

const int

__GHI_PREV_SCREEN

const int

__GHGF_FLICKER

const int

__GHGF_SUSPEND

Functions#

int

__NormalizeDir(int dir)

Variable descriptions#

const int __GHI_DRAW_COMBO = 0 🔗 Source

ghost.zh Version 2.8.15 Used for DrawGhostFFCs()


const int __GHI_DRAW_CSET = 1 🔗 Source


const int __GHI_DRAW_X = 2 🔗 Source


const int __GHI_DRAW_Y = 3 🔗 Source


const int __GHI_DRAW_WIDTH = 4 🔗 Source


const int __GHI_DRAW_HEIGHT = 5 🔗 Source


const int __GHI_DRAW_ADDITIONAL = 6 🔗 Source


const int __GHI_DRAW_LAYER = 7 🔗 Source


const int __GHI_DRAW_OPACITY = 8 🔗 Source


const int __GHI_DRAW_ARRAY_SIZE = 9 🔗 Source


const int __GHI_AC_COUNT = 0 🔗 Source

__Ghost_AdditionalCombos indices


const int __GHI_AC_DATA = 1 🔗 Source


const int __GH_AC_COMBO = 0 🔗 Source

1, 7, 13, 19


const int __GH_AC_X = 1 🔗 Source

2, 8, 14, 20


const int __GH_AC_Y = 2 🔗 Source

3, 9, 15, 21


const int __GH_AC_WIDTH = 3 🔗 Source

4, 10, 16, 22


const int __GH_AC_HEIGHT = 4 🔗 Source

5, 11, 17, 23


const int __GH_AC_ROTATION = 5 🔗 Source

6, 12, 18, 24


const int __GH_AC_MAX_ADDITIONAL_COMBOS = 4 🔗 Source

Changing these requires changing the size of __Ghost_AdditionalCombos and several arrays in Ghost_WaitframeLight()


const int __GH_AC_DATA_SIZE = 6 🔗 Source

Number of repeating elements


const int ENPROP_X = 0 🔗 Source

Enemy properties - used with GetEnemyProperty and SetEnemyProperty These must match tempGhostData in Ghost_WaitframeLight


const int ENPROP_Y = 1 🔗 Source


const int ENPROP_Z = 2 🔗 Source


const int ENPROP_JUMP = 3 🔗 Source


const int ENPROP_DIR = 11 🔗 Source


const int ENPROP_HP = 20 🔗 Source


const int ENPROP_CSET = 10 🔗 Source


const int GHD_EXPLODE = 1 🔗 Source

Death animations


const int GHD_EXPLODE_FLASH = 2 🔗 Source


const int GHD_SHRINK = 3 🔗 Source


int Ghost_X 🔗 Source

Global variables Position


int Ghost_Y 🔗 Source


int Ghost_Z 🔗 Source


int Ghost_Dir 🔗 Source


int Ghost_Jump 🔗 Source

Velocity and acceleration


int Ghost_Vx 🔗 Source


int Ghost_Vy 🔗 Source


int Ghost_Ax 🔗 Source


int Ghost_Ay 🔗 Source


int Ghost_Data 🔗 Source

Appearance


int Ghost_CSet 🔗 Source


int Ghost_TileWidth 🔗 Source


int Ghost_TileHeight 🔗 Source


int Ghost_HP 🔗 Source

HP


int __Ghost_Flags 🔗 Source

Internal use


int __Ghost_Flags2 🔗 Source


int __Ghost_InternalFlags 🔗 Source


int __Ghost_PrevX 🔗 Source


int __Ghost_PrevY 🔗 Source


int __Ghost_FlashCounter 🔗 Source


int __Ghost_KnockbackCounter 🔗 Source


int __Ghost_XOffsets 🔗 Source


int __Ghost_YOffsets 🔗 Source


int[] __Ghost_Scripts 🔗 Source


int[] __Ghost_AdditionalCombos 🔗 Source

Size is 1 + __GH_AC_MAX_ADDITIONAL_COMBOS * __GH_AC_DATA_SIZE


int[] __ghzhData 🔗 Source

tempGhostAdditionalCombos in Ghost_WaitframeLight() should match


const int __GHI_GLOBAL_FLAGS = 0 🔗 Source

__ghzhData indices


const int __GHI_FLASH_COUNTER = 1 🔗 Source


const int __GHI_SHADOW_FRAME = 2 🔗 Source


const int __GHI_SHADOW_TIMER = 3 🔗 Source


const int __GHI_LARGE_SHADOW_FRAME = 4 🔗 Source


const int __GHI_LARGE_SHADOW_TIMER = 5 🔗 Source


const int __GHI_CLOCK_TIMER = 6 🔗 Source


const int __GHI_PREV_SCREEN = 7 🔗 Source


const int __GHGF_FLICKER = 1 🔗 Source

Global flags


const int __GHGF_SUSPEND = 2 🔗 Source


Function descriptions#

int __NormalizeDir(int dir) 🔗 Source

Get a normal direction (a DIR_ constant) from a number outside that range