Constants - boxgaming/gx GitHub Wiki
Boolean
- GX_TRUE
- GX_FALSE
Events
- GXEVENT_INIT
- GXEVENT_UPDATE
- GXEVENT_DRAWBG
- GXEVENT_DRAWMAP
- GXEVENT_DRAWSCREEN
- GXEVENT_MOUSEINPUT
- GXEVENT_PAINTBEFORE
- GXEVENT_PAINTAFTER
- GXEVENT_COLLISION_TILE
- GXEVENT_COLLISION_ENTITY
- GXEVENT_ANIMATE_COMPLETE
Animation Modes
- GXANIMATE_LOOP
- GXANIMATE_SINGLE
Background Modes
Mode | Description |
---|---|
GXBG_STRETCH | Stretch the background image to the size of the scene. |
GXBG_SCROLL | Fit the height of the background image to the size of the screen. Scroll the horizontal position relative to the position on the map. |
GXBG_WRAP | Continuously wrap the background as the scene is moved horizontally. |
Scene Follow Entity Modes
Mode | Description |
---|---|
GXSCENE_FOLLOW_NONE | No automatic scene positioning (default) |
GXSCENE_FOLLOW_ENTITY_CENTER | Center the view on a specified entity |
GXSCENE_FOLLOW_ENTITY_CENTER_X | Center the x axis of the scene on the specified entity |
GXSCENE_FOLLOW_ENTITY_CENTER_Y | Center the y axis of the scene on the specified entity |
GXSCENE_FOLLOW_ENTITY_CENTER_X_POS | Center the x axis of the scene only when moving to the right |
GXSCENE_FOLLOW_ENTITY_CENTER_X_NEG | center the x axis of the scene only when moving to the left |
Scene Constrain Modes
Mode | Description |
---|---|
GXSCENE_CONSTRAIN_NONE | No checking on scene position: can be negative, can exceed map size (default) |
GXSCENE_CONSTRAIN_TO_MAP | Do not allow screen position outside the bounds of the map size |
Input Device
- GXDEVICE_KEYBOARD
- GXDEVICE_MOUSE
- GXDEVICE_CONTROLLER
- GXDEVICE_BUTTON
- GXDEVICE_AXIS
- GXDEVICE_WHEEL
Default Fonts
Font | Description |
---|---|
GXFONT_DEFAULT | Default bitmap font (white) |
GXFONT_DEFAULT_BLACK | Default bitmap font (black) |
Keyboard
- GXKEY_ESC
- GXKEY_1
- GXKEY_2
- GXKEY_3
- GXKEY_4
- GXKEY_5
- GXKEY_6
- GXKEY_7
- GXKEY_8
- GXKEY_9
- GXKEY_0
- GXKEY_DASH
- GXKEY_EQUALS
- GXKEY_BACKSPACE
- GXKEY_TAB
- GXKEY_Q
- GXKEY_W
- GXKEY_E
- GXKEY_R
- GXKEY_T
- GXKEY_Y
- GXKEY_U
- GXKEY_I
- GXKEY_O
- GXKEY_P
- GXKEY_LBRACKET
- GXKEY_RBRACKET
- GXKEY_ENTER
- GXKEY_LCTRL
- GXKEY_A
- GXKEY_S
- GXKEY_D
- GXKEY_F
- GXKEY_G
- GXKEY_H
- GXKEY_J
- GXKEY_K
- GXKEY_L
- GXKEY_SEMICOLON
- GXKEY_QUOTE
- GXKEY_BACKQUOTE
- GXKEY_LSHIFT
- GXKEY_BACKSLASH
- GXKEY_Z
- GXKEY_X
- GXKEY_C
- GXKEY_V
- GXKEY_B
- GXKEY_N
- GXKEY_M
- GXKEY_COMMA
- GXKEY_PERIOD
- GXKEY_SLASH
- GXKEY_RSHIFT
- GXKEY_NUMPAD_MULTIPLY
- GXKEY_SPACEBAR
- GXKEY_CAPSLOCK
- GXKEY_F1
- GXKEY_F2
- GXKEY_F3
- GXKEY_F4
- GXKEY_F5
- GXKEY_F6
- GXKEY_F7
- GXKEY_F8
- GXKEY_F9
- GXKEY_PAUSE
- GXKEY_SCRLK
- GXKEY_NUMPAD_7
- GXKEY_NUMPAD_8
- GXKEY_NUMPAD_9
- GXKEY_NUMPAD_MINUS
- GXKEY_NUMPAD_4
- GXKEY_NUMPAD_5
- GXKEY_NUMPAD_6
- GXKEY_NUMPAD_PLUS
- GXKEY_NUMPAD_1
- GXKEY_NUMPAD_2
- GXKEY_NUMPAD_3
- GXKEY_NUMPAD_0
- GXKEY_NUMPAD_PERIOD
- GXKEY_F11
- GXKEY_F12
- GXKEY_NUMPAD_ENTER
- GXKEY_RCTRL
- GXKEY_NUMPAD_DIVIDE
- GXKEY_NUMLOCK
- GXKEY_HOME
- GXKEY_UP
- GXKEY_PAGEUP
- GXKEY_LEFT
- GXKEY_RIGHT
- GXKEY_END
- GXKEY_DOWN
- GXKEY_PAGEDOWN
- GXKEY_INSERT
- GXKEY_DELETE
- GXKEY_LWIN
- GXKEY_RWIN
- GXKEY_MENU