Prev: F177 Up: Map Next: F1C5
F18D: Reset all the flags and stats for a new game.
Used by the routine at Game_Start.
Input
Output
Game_InitStats F18D XOR A The Round Key.
F18E LD (Pocket1),A
F191 LD B,$16 Clear all the object flags.
F193 LD HL,Lift_Count
Game_InitStats_0 F196 LD (HL),A
F197 INC HL
F198 DJNZ Game_InitStats_0
F19A LD HL,RoomObjSlot_Obj Reset object positions by filling in the object slots, for each room, with and object index in incremental steps.
F19D LD B,$1E
F19F LD A,$02
Game_InitStats_1 F1A1 LD (HL),A
F1A2 INC HL
F1A3 INC HL
F1A4 INC HL
F1A5 INC A
F1A6 DJNZ Game_InitStats_1
F1A8 LD A,$01 The Radio.
F1AA LD (Pocket2),A
F1AD LD HL,Food_Table Reset active food.
F1B0 LD (Food_ActivePtr),HL
F1B3 LD HL,Object_FoundTable Clear all object found markers.
F1B6 LD B,$20
F1B8 XOR A
Game_InitStats_2 F1B9 LD (HL),A
F1BA INC HL
F1BB INC HL
F1BC DJNZ Game_InitStats_2
F1BE LD B,$23 Clear all rooms visited.
Game_InitStats_3 F1C0 LD (HL),A
F1C1 INC HL
F1C2 DJNZ Game_InitStats_3
F1C4 RET
Prev: F177 Up: Map Next: F1C5