Classes
Members
Methods
# generate(levelIndex) → {void}
Generate a new map.
Generates a new map based on the specified levelIndex. Processes the
corresponding level configuration and updates position arrays for entities.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
levelIndex |
number
|
1 | the index of the level configuration |
void
# newMapConfiguration() → {void}
Reset all map entity positions.
Resets all entity positions to their default values, placing the player
at the top-left corner and clearing arrays for enemies, walls, ammo pickups,
health pickups, and stamina pickups.
void