-
Notifications
You must be signed in to change notification settings - Fork 0
Global Script
NebSeniah edited this page Jul 23, 2026
·
6 revisions
A script containing enums and signals used across all other scripts.
Connecting Systems:
N/A
- None
Global Enums:
-
State: The state of the application. -
Tool: The tools used during the editor state. -
WalkingState: The possible states that the player can be in for walking for audio (Ground, ice, slow, none). -
HotbarState: The state of the object hotbar in the editor state. -
BoxBrushState: The state of the box brush, to determine wait times for confirmation. -
TileType: The different tiles and their numeric indices. (MUST MATCHTileSet.tres) -
EntityType: The numeric indices of the entities and props.
Global Signals:
-
death: Emitted when the player dies, resetting the scene. -
reload: Emitted when the level scene is reloaded. -
complete: Emitted when the player reaches the goal, returning to editor state. -
levelCreated: Emitted when a new level is created from the main menu. -
checkpointCollected: Emitted whenever the player reaches a checkpoint. -
goalReached: Emitted whenever the player reaches a goal. -
onCoinCollected: Emitted whenever the player collects a coin.
-
BEDROCK_CORNER: int = 9997= The first index of the border tile that surrounds every level. Used as the margin in several other scripts to prevent placing. -
BEDROCK_WALL: int = 9998= The second index of the border tile that surrounds every level. -
ERASING_TILE: int = 9999= The index of the erasing tile graphic. Used purely for previews. -
TILE_SIZE: int = 128= The size of all cells in pixels.
- N/A
Future Work: N/A
Risks:
- N/A
-
TILE_SIZEshould have its name edited for consistency: "CELL_SIZE"
Resources
Known Issues
Future Work
Globals
Managers
- Main Menu Manager
- Master Manager
- Camera Manager
- Hotkey Manager
- Import Export Manager
- Audio Manager
- Animation Manager
- PopUp Manager
UI
Managers
- Editor Manager
- Tile Manager
- Entity Manager
- Icon Manager
- Preview Manager
- Tool Manager
- Asset Manager
- Custom Cursor Manager
Tiles & Entities
- Grid Lines
- Preview Line
- Tiles & Entities
- Enemies
- Patrolling Enemy
- Flying Enemy
- Shooting Enemy
- Stationary Enemy
- Moving Platform
- Property Editing
Asset Swapping
UI
Managers
Player