What is the likely purpose of this call?
spawnEnemy('orc', x, y);
- Create a new enemy
- Remove an enemy
- Fade the background
- Play a sound effect
spawnEnemy usually creates an enemy instance at the given position.
Play Game Dev ▸
spawnEnemy('orc', x, y);