![]() |
Routines |
| Prev: 99F7 | Up: Map | Next: 9A0A |
|
Used by the routines at CreateSpawnedEntity_Creature and MakeCreature.
Sets up an entity as a creature of a random kind, using SetUpCreature.
|
||||||||
| CreateRandomCreature | 99FD | CALL GetRandomNumber | Call GetRandomNumber to get a random number. | |||||
| 9A00 | LD A,($5F9A) | Fetch the low byte of the seed. | ||||||
| 9A03 | AND %00000011 | Use bits 0-1 to make the kind of the creature. | ||||||
| 9A05 | LD C,$3F | Set the mask for the random heading to 3F. | ||||||
| 9A07 | JP SetUpCreature | Jump to SetUpCreature. | ||||||
| Prev: 99F7 | Up: Map | Next: 9A0A |