109 lines
1.7 KiB
ArmAsm
Raw Normal View History

; Ootw for Apple II Lores
2019-01-17 16:58:19 -05:00
; by Vince "Deater" Weaver <vince@deater.net>
2019-01-13 01:10:44 -05:00
.include "zp.inc"
.include "hardware.inc"
2019-01-15 22:44:57 -05:00
ootw:
2019-01-17 17:14:19 -05:00
; Initialize some variables
2019-01-15 22:44:57 -05:00
lda #0
2019-01-17 16:58:19 -05:00
sta GAME_OVER
2019-01-18 00:18:06 -05:00
sta EQUAKE_PROGRESS
sta EARTH_OFFSET
sta KICKING
sta CROUCHING
sta WHICH_CAVE
2019-01-24 21:41:01 -05:00
sta BEAST_OUT
2019-01-15 22:44:57 -05:00
2019-01-17 17:14:19 -05:00
lda #22
sta PHYSICIST_Y
lda #20
sta PHYSICIST_X
lda #1
sta DIRECTION
2019-01-18 00:27:32 -05:00
lda #40
sta BOULDER_Y
2019-01-18 15:16:37 -05:00
;=======================
; Initialize the slugs
;=======================
2019-01-20 23:46:05 -05:00
jsr init_slugs
2019-01-18 16:04:52 -05:00
2019-01-20 23:46:05 -05:00
;=======================
; Enter the game
;=======================
2019-01-18 16:04:52 -05:00
2019-01-17 16:58:19 -05:00
jsr ootw_pool
2019-01-15 22:44:57 -05:00
;===========================
; quit_level
;===========================
quit_level:
jsr TEXT
jsr HOME
lda KEYRESET ; clear strobe
2019-01-16 00:28:23 -05:00
lda #0
sta DRAW_PAGE
lda #<end_message
sta OUTL
lda #>end_message
sta OUTH
jsr move_and_print
jsr move_and_print
2019-01-15 22:44:57 -05:00
wait_loop:
lda KEYPRESS
bpl wait_loop
lda KEYRESET ; clear strobe
jmp ootw
2019-01-16 00:28:23 -05:00
end_message:
.byte 8,10,"PRESS RETURN TO CONTINUE",0
.byte 11,20,"ACCESS CODE: IH8S",0
2019-01-15 22:44:57 -05:00
2019-01-18 23:23:18 -05:00
.include "ootw_rope.s"
2019-01-17 16:58:19 -05:00
.include "ootw_pool.s"
.include "ootw_cavern.s"
2019-01-20 01:45:51 -05:00
.include "ootw_mesa.s"
2019-01-17 16:58:19 -05:00
.include "physicist.s"
2019-01-19 23:51:58 -05:00
.include "sluggy.s"
2019-01-20 01:05:52 -05:00
.include "earthquake.s"
2019-01-16 00:28:23 -05:00
.include "text_print.s"
2019-01-13 01:10:44 -05:00
.include "gr_pageflip.s"
.include "gr_unrle.s"
.include "gr_fast_clear.s"
.include "gr_copy.s"
2019-01-13 23:37:49 -05:00
.include "gr_putsprite.s"
.include "gr_offsets.s"
2019-01-18 00:18:06 -05:00
.include "random16.s"
.include "keyboard.s"
2019-01-22 23:00:59 -05:00
; room backgrounds
2019-01-17 15:56:43 -05:00
.include "ootw_pool.inc"
.include "ootw_cavern.inc"
2019-01-19 23:48:48 -05:00
.include "ootw_cavern2.inc"
.include "ootw_cavern3.inc"
2019-01-18 23:23:18 -05:00
.include "ootw_rope.inc"
2019-01-22 23:00:59 -05:00
.include "ootw_underwater.inc"
; sprites
.include "sprites_ootw.inc"
.include "sprites_physicist.inc"
.include "sprites_slugs.inc"
2019-01-26 12:29:38 -05:00
.include "sprites_beast.inc"
2019-01-22 23:00:59 -05:00
; cutscenes
2019-01-24 16:55:53 -05:00
.include "cutscene_slug.s"
.include "cutscene_beast.s"