Prev: 25478 Up: Map Next: 25562
25489: Initialise New Game
Used by the routine at StartGame.
GameInit 25489 LD A,3 Write starting lives to Player_Lives (duplicate of 24566 - possibly so POKEs would appear to not work?)
25491 LD (24125),A
This entry point is used by the routine at HandlerCup.
GameInit_0 25494 XOR A Write 0 to Cups_Collected.
25495 LD (24124),A
25498 CALL 25752 Call 25752.
Reset miles and time.
25501 LD HL,24109 HL=Miles.
25504 LD B,7 B=7 (counter).
GameInit_Reset 25506 LD (HL),0 Write 0 to HL.
25508 INC HL Increment HL by one.
25509 DJNZ GameInit_Reset Decrease counter by one and loop back to GameInit_Reset until counter is zero.
This entry point is used by the routine at GameOver.
PlayerInit 25511 CALL CreateWindow Call CreateWindow.
25514 CALL 25918 Call 25918.
25517 CALL 25966 Call 25966.
25520 CALL 27646 Call 27646.
25523 CALL 27145 Call 27145.
25526 LD HL,49152 Write 49152 (the maximum value for fuel) to Fuel_LSB.
25529 LD (24074),HL
25532 LD H,0 Write 0000 to;
25534 LD (24076),HL
25537 LD (24078),HL
25540 LD (24080),HL
25543 LD HL,3136 Write 3136 to PlayerMapPosition.
25546 LD (24069),HL
25549 LD HL,1600 Write 1600 to 24072.
25552 LD (24072),HL
25555 XOR A Write 0 to 24143.
25556 LD (24143),A
25559 JP 27646 Jump to 27646.
Prev: 25478 Up: Map Next: 25562