Prev: 45573 Up: Map Next: 45621
45598: Initialise Player
Used by the routine at InitialiseGame.
Sets up the state of the current player: five lives, a limit of three nasties per room, and a new set of actors, amulet pieces and room objects.
Set starting lives.
InitialisePlayer 45598 LD A,5 Set the number of lives in ActivePlayer_Lives to 5.
45600 LD (38589),A
45603 LD A,3 Set the nastie limit in ActivePlayer_NastieLimit to 3.
45605 LD (38590),A
45608 XOR A Clear ActivePlayer_Unknown (purpose not yet known, as this is never read).
45609 LD (38588),A
45612 CALL ResetActors Reset the actors.
45615 CALL PlaceAmuletPieces Place the amulet pieces.
45618 JP GenerateRoomObjects Jump to GenerateRoomObjects to generate the objects in the rooms.
Prev: 45573 Up: Map Next: 45621