ghost2_common.zh#
Variables#
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int[] |
|
int[] |
|
int[] |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
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
Global variables Position
Velocity and acceleration
Appearance
int Ghost_TileWidth 🔗 Source
int Ghost_TileHeight 🔗 Source
HP
Internal use
int __Ghost_Flags2 🔗 Source
int __Ghost_InternalFlags 🔗 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
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
Function descriptions#
int __NormalizeDir(int dir) 🔗 Source
Get a normal direction (a DIR_ constant) from a number outside that range