mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-29 00:31:52 +00:00
63 lines
1.2 KiB
ArmAsm
63 lines
1.2 KiB
ArmAsm
; TFV world
|
|
; the main part of the game
|
|
|
|
|
|
.include "zp.inc"
|
|
.include "hardware.inc"
|
|
.include "common_defines.inc"
|
|
|
|
;================================
|
|
; Clear screen and setup graphics
|
|
;================================
|
|
|
|
;=====================
|
|
; Handle Overworld
|
|
;=====================
|
|
|
|
jsr handle_overworld
|
|
|
|
;=====================
|
|
; Game Over
|
|
;=====================
|
|
; return to title screen?
|
|
|
|
jsr game_over
|
|
|
|
lda #LOAD_TITLE
|
|
sta WHICH_LOAD
|
|
|
|
rts
|
|
|
|
|
|
;===============================================
|
|
; External modules
|
|
;===============================================
|
|
|
|
.include "tfv_drawmap.s"
|
|
.include "tfv_overworld.s"
|
|
.include "tfv_game_over.s"
|
|
.include "help_overworld.s"
|
|
|
|
|
|
.include "gr_fast_clear.s"
|
|
.include "gr_hlin.s"
|
|
.include "gr_pageflip.s"
|
|
.include "keyboard.s"
|
|
.include "joystick.s"
|
|
.include "gr_putsprite.s"
|
|
.include "text_print.s"
|
|
.include "gr_copy.s"
|
|
.include "decompress_fast_v2.s"
|
|
.include "gr_offsets.s"
|
|
.include "wait_keypressed.s"
|
|
|
|
.include "tfv_battle.s"
|
|
.include "rotate_intro.s"
|
|
|
|
;===============================================
|
|
; Variables
|
|
;===============================================
|
|
|
|
.include "tfv_sprites.inc"
|
|
.include "graphics_map/tfv_backgrounds.inc"
|