dos33fsprogs/games/riven_hgr/disk39_files/level_outside.s

121 lines
1.8 KiB
ArmAsm
Raw Normal View History

2024-05-17 16:49:57 +00:00
; Riven -- Dome Island -- Outside in the Quad
; by deater (Vince Weaver) <vince@deater.net>
; Zero Page
.include "../zp.inc"
.include "../hardware.inc"
.include "../common_defines.inc"
.include "../qload.inc"
.include "disk39_defines.inc"
2024-05-17 16:49:57 +00:00
riven_outside:
;===================
; init screen
;===================
bit KEYRESET
bit SET_GR
bit PAGE1
bit HIRES
bit FULLGR
;========================
; set up location
;========================
lda #<locations
sta LOCATIONS_L
lda #>locations
sta LOCATIONS_H
lda #0
sta DRAW_PAGE
sta LEVEL_OVER
lda #0
sta JOYSTICK_ENABLED
sta UPDATE_POINTER
lda #1
sta CURSOR_VISIBLE
lda #20
sta CURSOR_X
sta CURSOR_Y
;===================================
; init
;===================================
; done in title
; lda #$20
; sta HGR_PAGE
; jsr hgr_make_tables
jsr change_location
jsr save_bg_14x14 ; save old bg
game_loop:
;===================================
; draw pointer
;===================================
jsr draw_pointer
;===================================
; handle keypress/joystick
;===================================
jsr handle_keypress
;===================================
; increment frame count
;===================================
inc FRAMEL
bne frame_no_oflo
inc FRAMEH
frame_no_oflo:
;====================================
; check level over
;====================================
lda LEVEL_OVER
bne really_exit
jmp game_loop
really_exit:
2024-05-15 20:12:35 +00:00
rts
2024-05-17 17:07:47 +00:00
;==================================
; call button clicked
;==================================
; just ignore this
call_button_clicked:
bit SPEAKER
rts
;==========================
; includes
;==========================
2024-05-17 16:49:57 +00:00
.include "graphics_outside/outside_graphics.inc"
.include "leveldata_outside.inc"