Prev: 33904 Up: Map Next: 38278
38240: Initialise Game
Used by the routine at Start_Game.
Initialise_Game 38240 CALL Initialise_Interrupts Call Initialise_Interrupts.
Wait 100 frames.
38243 LD B,100 Set the frame counter to 100 in B.
Wait_Frames 38245 HALT Halt, and loop back to Wait_Frames until the frame counter is zero.
38246 DJNZ Wait_Frames
Draw the cockpit and menu:
menu-cockpit
Draw the cockpit in the bottom third of the screen.
38248 LD HL,61440 Copy 2048 bytes from Graphics_Dashboard to 20480 (screen buffer).
38251 LD DE,20480
38254 LD BC,2048
38257 LDIR
38259 LD DE,23040 Copy 256 bytes from Graphics_Dashboard_Attributes to 23040 (attribute buffer).
38262 LD BC,256
38265 LDIR
Then add the menu.
38267 CALL Handle_Menu Call Handle_Menu.
Main loop.
Main_Loop 38270 CALL Update_Frame Call Update_Frame.
38273 CALL Display_Status Call Display_Status.
38276 JR Main_Loop Jump to Main_Loop.
Prev: 33904 Up: Map Next: 38278