You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
311 B

  1. SECTION "Game Loop", ROM0
  2. Game_Start::
  3. ld hl, intro_Data
  4. call Map_Load
  5. call Player_Init
  6. .loop:
  7. ld hl, frame
  8. inc [hl]
  9. call Keys_Update
  10. call Player_Update
  11. ; wait for vblank
  12. halt
  13. call Map_Update
  14. ; ~160 cycles
  15. ld a, HIGH(_OAM)
  16. call DMA_Start
  17. jr .loop