Prev: C29A Up: Map Next: C2E8
C2CE: Choose where the game starts
Used by the routine at START.
Puts the first sixteen bytes of the player's legs record back as they are at the start of a game (PLAYER_START, over the start of PLAYER_TEMPLATE), and sets the room by the random number: one of the four at START_ROOMS. Called once a game, from START, before the first RESTART_PLAYER.
CHOOSE_START C2CE LD HL,PLAYER_START graphic, position, half-sizes, flags and room of a new game
C2D1 LD DE,PLAYER_TEMPLATE
C2D4 LD BC,$0010
C2D7 LDIR
C2D9 LD A,(RANDOM) one of four rooms, by bits 0 and 1 of RANDOM
C2DC AND $03
C2DE LD C,A
C2DF LD HL,START_ROOMS
C2E2 ADD HL,BC
C2E3 LD A,(HL)
C2E4 LD (START_ROOM),A
C2E7 RET
Prev: C29A Up: Map Next: C2E8