Routines |
Prev: 43533 | Up: Map | Next: 43626 |
Used by the routines at GameComplete and 43533.
|
||||
Is this a one or two player game?
|
||||
43559 | LD A,(38546) | A=GameOptions. | ||
43562 | AND %00000001 | Keep only bit 0. | ||
43564 | JR NZ,43610 | Jump to 43610 if this is a two player game. | ||
This is a one player game.
|
||||
43566 | LD A,(38589) | If ActivePlayer_Lives is zero then jump to GameOver_ControllerRestart. | ||
43569 | AND A | |||
43570 | JR Z,GameOver_ControllerRestart | |||
43572 | LD HL,38589 | HL=ActivePlayer_Lives. | ||
43575 | DEC (HL) | |||
43576 | CALL DisplayPlayerLives | Call DisplayPlayerLives. | ||
43579 | LD A,(IX+0) | |||
43582 | AND %00000111 | Keep only bits 0-2. | ||
43584 | OR %00010000 | Set bit 4. | ||
43586 | LD (IX+0),A | |||
43589 | LD (IX+5),71 | |||
43593 | XOR A | Write 0 to OrchidEffectTimer. | ||
43594 | LD (38576),A | |||
43597 | LD A,16 | Write 16 to 38577. | ||
43599 | LD (38577),A | |||
43602 | LD A,128 | Write 128 to 38580. | ||
43604 | LD (38580),A | |||
This entry point is used by the routine at 43533.
|
||||
43607 | JP 44381 | Jump to 44381. | ||
This is a two player game.
|
||||
43610 | LD A,(38624) | If InactivePlayer_Lives is zero then jump to 43566. | ||
43613 | AND A | |||
43614 | JR Z,43566 | |||
43616 | LD A,(38589) | |||
43619 | AND A | |||
43620 | CALL Z,GameOver_Controller | |||
43623 | JP 45573 | Jump to 45573. |
Prev: 43533 | Up: Map | Next: 43626 |