tfv: split apart the helps

This commit is contained in:
Vince Weaver 2020-12-31 15:01:44 -05:00
parent 4b2bd91dc4
commit 357df41d9c
6 changed files with 47 additions and 8 deletions

View File

@ -52,7 +52,7 @@ TFV_FLYING: tfv_flying.o
tfv_flying.o: tfv_flying.s \
zp.inc \
gr_putsprite.s \
tfv_help.s \
help_flying.s \
flying_mode7.s flying_sprites.inc
ca65 -o tfv_flying.o tfv_flying.s -l tfv_flying.lst
@ -63,6 +63,7 @@ TFV_WORLD: tfv_world.o
tfv_world.o: tfv_world.s \
tfv_overworld.s tfv_drawmap.s \
help_overworld.s \
graphics_map/tfv_backgrounds.inc tfv_sprites.inc zp.inc
ca65 -o tfv_world.o tfv_world.s -l tfv_world.lst

39
tfv/help_flying.s Normal file
View File

@ -0,0 +1,39 @@
;===============================
; print help message when flying
;===============================
print_help:
lda #$a0
jsr clear_top_a
bit SET_TEXT
jsr normal_text
lda #<(help_message)
sta OUTL
lda #>(help_message)
sta OUTH
jsr move_and_print_list
jsr page_flip
jsr wait_until_keypressed
bit SET_GR ; set graphics
rts
help_message:
.byte 14,1,"FLYING HELP",0
.byte 3,4, "A/D,<-/-> - TURN",0
.byte 3,5, "W/S,UP/DOWN - CHANGE ALTITUDE",0
.byte 3,6, "Z/X - SPEED UP / SLOW DOWN",0
.byte 3,7, "SPACE - STOP",0
.byte 3,8, "RETURN - LAND",0
.byte 3,11,"Q,ESC - QUIT",0
.byte 3,12,"J - ENABLE JOYSTICK",0
.byte 3,13,"CONTROL-T - TOGGLE SOUND",0
.byte $ff

View File

@ -657,7 +657,7 @@ grass_string:
.include "wait_keypressed.s"
.include "text_print.s"
.include "tfv_help.s"
.include "help_flying.s"
.include "flying_mode7.s"
.include "flying_sprites.inc"

View File

@ -12,8 +12,7 @@
; Play music, lightning effects?
; TFV only hit for one damage, susie for 100
world_map:
handle_overworld:
;===================
; Clear screen/pages
@ -241,7 +240,7 @@ worldmap_copy_background:
; Copy background
;================
jsr gr_copy_to_current
jsr gr_copy_to_current_40x40
;=================================
; Handle background ground scatter

View File

@ -11,10 +11,10 @@
;================================
;=====================
; World Map
; Handle Overworld
;=====================
jsr world_map
jsr handle_overworld
;=====================
; Game Over
@ -36,7 +36,7 @@
.include "tfv_drawmap.s"
.include "tfv_overworld.s"
.include "tfv_game_over.s"
.include "tfv_help.s"
.include "help_overworld.s"
.include "gr_fast_clear.s"