![]() |
Routines |
| Prev: 34574 | Up: Map | Next: 34735 |
|
Used by the routines at UpdateEnemySpawning and UpdateEnemies.
Starts one of the special enemies, but only in the middle zones of the planet (zones 3 to 9).
|
||||
| SpawnSpecialEnemy | 34706 | LD A,(52824) | Fetch the map zone from 52824. | |
| 34709 | CP 10 | Return if it is 10 or higher... | ||
| 34711 | RET NC | |||
| 34712 | CP 3 | ...or lower than 3. | ||
| 34714 | RET C | |||
| 34715 | LD A,2 | Look for a free slot among two slots. | ||
| 34717 | LD IX,39452 | |||
| 34721 | CALL FindFreeSlot | Search for a free enemy slot. | ||
| 34724 | RET NZ | Return if there is not one. | ||
| 34725 | LD A,1 | Select the second type of enemy. | ||
| 34727 | LD (35282),A | |||
| 34730 | LD B,3 | With 3 in B, jump to SpawnEnemy_ChooseSide to start the enemy. | ||
| 34732 | JP SpawnEnemy_ChooseSide | |||
| Prev: 34574 | Up: Map | Next: 34735 |