2018-08-01 00:17:07 -04:00
|
|
|
;=====================================
|
|
|
|
; Rasterbars in Space
|
|
|
|
;
|
2019-06-13 21:12:02 -04:00
|
|
|
; a cycle-counting racing-the-beam game
|
2018-08-01 00:17:07 -04:00
|
|
|
;
|
2018-07-31 21:04:32 -04:00
|
|
|
; by deater (Vince Weaver) <vince@deater.net>
|
2018-08-01 00:17:07 -04:00
|
|
|
;=====================================
|
2018-07-31 21:04:32 -04:00
|
|
|
|
|
|
|
; Zero Page
|
2019-06-13 21:12:02 -04:00
|
|
|
.include "zp.inc"
|
2019-06-13 16:42:25 -04:00
|
|
|
|
2019-06-13 21:12:02 -04:00
|
|
|
; hardware addresses/soft_switches
|
|
|
|
.include "hardware.inc"
|
2019-06-13 16:42:25 -04:00
|
|
|
|
|
|
|
|
2019-06-13 21:12:02 -04:00
|
|
|
space_bars_begin:
|
2019-06-13 16:42:25 -04:00
|
|
|
|
2018-08-01 00:17:07 -04:00
|
|
|
;==================
|
|
|
|
; show title screen
|
|
|
|
;==================
|
2019-06-13 21:15:17 -04:00
|
|
|
view_title:
|
2019-06-13 17:08:46 -04:00
|
|
|
jsr title_screen
|
2018-07-31 21:04:32 -04:00
|
|
|
|
2018-08-01 00:17:07 -04:00
|
|
|
;==================
|
|
|
|
; Display Text
|
|
|
|
;==================
|
2018-07-31 21:04:32 -04:00
|
|
|
|
2019-06-13 17:08:46 -04:00
|
|
|
jsr instructions
|
2018-08-01 23:35:23 -04:00
|
|
|
|
2018-08-01 00:17:07 -04:00
|
|
|
;==================
|
|
|
|
; Mode7
|
|
|
|
;==================
|
2018-07-31 21:04:32 -04:00
|
|
|
|
2019-06-13 16:42:25 -04:00
|
|
|
; TODO
|
|
|
|
|
2019-06-13 21:12:02 -04:00
|
|
|
;=============================
|
|
|
|
; EARTH: 40x192 sprites
|
|
|
|
;=============================
|
2019-06-13 16:42:25 -04:00
|
|
|
|
2019-06-13 21:32:14 -04:00
|
|
|
jsr level3_earth
|
2019-06-13 16:42:25 -04:00
|
|
|
|
|
|
|
lda GAME_OVER
|
|
|
|
bne game_over_man
|
|
|
|
|
2019-06-13 21:12:02 -04:00
|
|
|
;============================
|
|
|
|
; SATURN: Rasterbars
|
|
|
|
;============================
|
2018-07-31 21:04:32 -04:00
|
|
|
|
2019-06-13 21:32:14 -04:00
|
|
|
jsr level6_saturn
|
2018-08-02 00:13:40 -04:00
|
|
|
|
2018-08-01 00:17:07 -04:00
|
|
|
;==================
|
|
|
|
; Game Over
|
|
|
|
;==================
|
2019-06-13 16:42:25 -04:00
|
|
|
game_over_man:
|
2018-08-02 00:13:40 -04:00
|
|
|
jsr game_over
|
|
|
|
|
2019-06-13 21:15:17 -04:00
|
|
|
bit KEYRESET
|
|
|
|
jmp view_title
|
|
|
|
|
2018-08-02 00:13:40 -04:00
|
|
|
loop_forever:
|
|
|
|
jmp loop_forever
|
2018-07-31 21:04:32 -04:00
|
|
|
|
|
|
|
|
2019-06-13 21:12:02 -04:00
|
|
|
.include "gr_simple_clear.s"
|
2018-07-31 21:04:32 -04:00
|
|
|
|
2019-06-13 16:42:25 -04:00
|
|
|
.include "gr_offsets.s"
|
2018-07-31 21:04:32 -04:00
|
|
|
|
2019-06-13 21:32:14 -04:00
|
|
|
.include "gr_unrle.s"
|
|
|
|
.include "keypress.s"
|
2018-07-31 21:04:32 -04:00
|
|
|
.include "gr_copy.s"
|
2018-08-01 00:17:07 -04:00
|
|
|
.include "title.s"
|
2018-08-01 23:35:23 -04:00
|
|
|
.include "instructions.s"
|
2019-06-13 21:32:14 -04:00
|
|
|
.include "level6_saturn.s"
|
2018-08-01 23:35:23 -04:00
|
|
|
.include "text_print.s"
|
2018-08-02 00:13:40 -04:00
|
|
|
.include "game_over.s"
|
2018-10-07 17:32:49 -04:00
|
|
|
.align $100
|
2018-10-06 20:35:28 -04:00
|
|
|
.include "vapor_lock.s"
|
|
|
|
.include "delay_a.s"
|
|
|
|
.include "lz4_decode.s"
|
2018-10-07 22:59:56 -04:00
|
|
|
.align $100
|
2018-10-07 21:18:40 -04:00
|
|
|
.include "gr_putsprite.s"
|
2018-07-31 21:04:32 -04:00
|
|
|
|
|
|
|
.include "spacebars_title.inc"
|
2018-10-07 22:59:56 -04:00
|
|
|
.align $100
|
2018-10-07 21:18:40 -04:00
|
|
|
.include "mode7_sprites.inc"
|
2019-06-13 16:42:25 -04:00
|
|
|
|
|
|
|
.align $100
|
2019-06-13 21:32:14 -04:00
|
|
|
.include "level3_earth.s"
|