Prev: B2CE Up: Map Next: B374
B310: Start a new game.
Used by the routine at Demo.
Game_Start B310 XOR A Black border.
B311 OUT ($FE),A
B313 CALL MainMenu
B316 LD A,$01 Start room.
B318 LD (Wally_RoomNo),A
B31B LD HL,_f460
B31E LD (_f46d),HL
B321 LD HL,_7a75
B324 LD (_f3a2),HL
B327 LD H,$76
B329 LD (_f3a0),HL
B32D LD (_f3a6),A
B330 CALL ScreenClearSimple
B333 CALL Game_InitStats
B336 CALL RoomDraw
Main B338 PUSH HL Main
B339 LD HL,ScoreBoard_Item
B33C LD DE,$0001
B33F CALL FurnitureDraw
B342 CALL Inv_Redraw
B345 CALL LivesReset
B348 CALL Milk_DrawFull
B34B LD HL,$9858 Start position of Wally.
B34E LD (Wally_X),HL
B351 CALL Wally_Draw
This entry point is used by the routines at StartNextLife, Test08_BoxingGloveSafe and F4D2.
GameLoop B354 CALL Wally_Handler
B357 CALL Wally_StepCheck
B35A CALL Wally_CheckForDeath
B35D CALL Wally_TestObjSlot
B360 CALL Game_PercentUpdate
B363 CALL Room_EventCaller
B366 CALL Game_ExitCheck
B369 CALL Food_CheckPickup
B36C CALL Room_TestEvents
B36F CALL Pause_Short
B372 JR GameLoop
Prev: B2CE Up: Map Next: B374