Game State Module
This module defines the game state and game phases
- Source:
Members
(inner, constant) EnemyTypes :string
Enemy types
Type:
- string
Properties:
Name | Type | Description |
---|---|---|
BASIC |
string | |
RANGED |
string |
- Source:
(inner, constant) GamePhase :string
Game phases
Type:
- string
Properties:
Name | Type | Description |
---|---|---|
PLACEMENT |
string | |
COMBAT |
string |
- Source:
(inner, constant) ParticleTypes :string
Particle types
Type:
- string
Properties:
Name | Type | Description |
---|---|---|
DEATH_PARTICLE |
string | |
PROJECTILE |
string | |
AOE_EXPLOSION |
string | |
SLIME_TRAIL |
string |
- Source:
(inner, constant) TowerTypes :string
Tower types
Type:
- string
Properties:
Name | Type | Description |
---|---|---|
BASIC |
string | |
RAPID |
string | |
SNIPER |
string | |
GOOP |
string | |
AOE |
string |
- Source:
(inner, constant) gameState :Object
Game state
Type:
- Object
- Source:
Methods
(inner) createEnemy(startPosition)
Creates an enemy
Parameters:
Name | Type | Description |
---|---|---|
startPosition |
Object | Starting position of the enemy |
- Source:
(inner) createParticle(type, position)
Creates a particle
Parameters:
Name | Type | Description |
---|---|---|
type |
string | Particle type |
position |
Object | Position of the particle |
- Source:
(inner) createTower(type, position)
Creates a tower
Parameters:
Name | Type | Description |
---|---|---|
type |
string | Tower type |
position |
Object | Position of the tower |
- Source: