mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-01 05:31:52 +00:00
sb: add two placeholder games
This commit is contained in:
parent
3e0a94861f
commit
2468c859ac
@ -12,7 +12,7 @@ all: sb.dsk
|
||||
|
||||
####
|
||||
|
||||
sb.dsk: QBOOT QLOAD TITLE DUCK_POND ROOF RAT
|
||||
sb.dsk: QBOOT QLOAD TITLE DUCK_POND ROOF TARGET CLIFF RAT
|
||||
cp $(EMPTY_DISK) sb.dsk
|
||||
$(DOS33_RAW) sb.dsk 0 0 QBOOT 0 1
|
||||
$(DOS33_RAW) sb.dsk 0 2 QBOOT 1 1
|
||||
@ -20,8 +20,11 @@ sb.dsk: QBOOT QLOAD TITLE DUCK_POND ROOF RAT
|
||||
$(DOS33_RAW) sb.dsk 1 0 QLOAD 0 0
|
||||
$(DOS33_RAW) sb.dsk 2 0 TITLE 0 0
|
||||
$(DOS33_RAW) sb.dsk 5 0 DUCK_POND 0 0
|
||||
$(DOS33_RAW) sb.dsk 8 0 ROOF 0 0
|
||||
$(DOS33_RAW) sb.dsk 11 0 RAT 0 0
|
||||
$(DOS33_RAW) sb.dsk 10 0 ROOF 0 0
|
||||
# $(DOS33_RAW) sb.dsk 15 0 ASPLODE 0 0
|
||||
$(DOS33_RAW) sb.dsk 20 0 TARGET 0 0
|
||||
$(DOS33_RAW) sb.dsk 25 0 CLIFF 0 0
|
||||
$(DOS33_RAW) sb.dsk 30 0 RAT 0 0
|
||||
|
||||
####
|
||||
|
||||
@ -41,7 +44,6 @@ qload.o: qload.s qboot.inc
|
||||
|
||||
####
|
||||
|
||||
|
||||
ROOF: roof.o
|
||||
ld65 -o ROOF roof.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
|
||||
|
||||
@ -50,6 +52,29 @@ roof.o: roof.s zx02_optim.s \
|
||||
ca65 -o roof.o roof.s -l roof.lst
|
||||
|
||||
|
||||
####
|
||||
|
||||
CLIFF: cliff.o
|
||||
ld65 -o CLIFF cliff.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
|
||||
|
||||
cliff.o: cliff.s zx02_optim.s \
|
||||
cliff_graphics/cliff_base.hgr.zx02 \
|
||||
zp.inc hardware.inc
|
||||
ca65 -o cliff.o cliff.s -l cliff.lst
|
||||
|
||||
####
|
||||
|
||||
TARGET: target.o
|
||||
ld65 -o TARGET target.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
|
||||
|
||||
target.o: target.s zx02_optim.s \
|
||||
target_graphics/target.hgr.zx02 \
|
||||
zp.inc hardware.inc
|
||||
ca65 -o target.o target.s -l target.lst
|
||||
|
||||
|
||||
|
||||
|
||||
####
|
||||
|
||||
RAT: rat.o
|
||||
@ -106,4 +131,4 @@ HELLO: hello.bas
|
||||
####
|
||||
|
||||
clean:
|
||||
rm -f *.lst *.o TITLE ROOF RAT DUCK_POND *~
|
||||
rm -f *.lst *.o QBOOT QLOAD TITLE DUCK_POND ROOF TARGET CLIFF RAT *~
|
||||
|
74
games/sb/cliff.s
Normal file
74
games/sb/cliff.s
Normal file
@ -0,0 +1,74 @@
|
||||
; Cliff climb minigame from Peasant's Quest
|
||||
;
|
||||
; Yet Another HR project
|
||||
;
|
||||
; by deater (Vince Weaver) <vince@deater.net>
|
||||
|
||||
|
||||
.include "zp.inc"
|
||||
.include "hardware.inc"
|
||||
|
||||
|
||||
hires_start:
|
||||
|
||||
;===================
|
||||
; set graphics mode
|
||||
;===================
|
||||
jsr HOME
|
||||
|
||||
bit HIRES
|
||||
bit FULLGR
|
||||
bit SET_GR
|
||||
bit PAGE1
|
||||
|
||||
|
||||
;===================
|
||||
; Load graphics
|
||||
;===================
|
||||
load_loop:
|
||||
|
||||
;=============================
|
||||
|
||||
|
||||
;==========================
|
||||
; Load Image
|
||||
;===========================
|
||||
|
||||
load_image:
|
||||
|
||||
; size in ldsizeh:ldsizel (f1/f0)
|
||||
|
||||
lda #<comp_data
|
||||
sta ZX0_src
|
||||
lda #>comp_data
|
||||
sta ZX0_src+1
|
||||
|
||||
|
||||
lda #$20
|
||||
|
||||
|
||||
jsr full_decomp
|
||||
|
||||
; rts
|
||||
|
||||
|
||||
|
||||
wait_until_keypress:
|
||||
lda KEYPRESS ; 4
|
||||
bpl wait_until_keypress ; 3
|
||||
bit KEYRESET ; clear the keyboard buffer
|
||||
|
||||
which_ok:
|
||||
lda #0
|
||||
sta WHICH_LOAD
|
||||
rts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.include "zx02_optim.s"
|
||||
|
||||
|
||||
comp_data:
|
||||
.incbin "cliff_graphics/cliff_base.hgr.zx02"
|
27
games/sb/cliff_graphics/Makefile
Normal file
27
games/sb/cliff_graphics/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
include ../../../Makefile.inc
|
||||
|
||||
ZX02 = ~/research/6502_compression/zx02.git/build/zx02 -f
|
||||
PNG_TO_HGR = ../../../utils/hgr-utils/png2hgr
|
||||
LINKER_SCRIPTS = ../../../linker_scripts
|
||||
DOS33 = ../../../utils/dos33fs-utils/dos33
|
||||
EMPTY_DISK = ../../../empty_disk/empty.dsk
|
||||
TOKENIZE = ../../../utils/asoft_basic-utils/tokenize_asoft
|
||||
PNG2GR = ../../../utils/gr-utils/png2gr
|
||||
PNG2SPRITES = ../../../utils/gr-utils/png2sprites
|
||||
HGR_SPRITE = ../../../utils/hgr-utils/hgr_make_sprite
|
||||
|
||||
all: cliff_base.hgr.zx02
|
||||
|
||||
####
|
||||
|
||||
cliff_base.hgr.zx02: cliff_base.hgr
|
||||
$(ZX02) cliff_base.hgr cliff_base.hgr.zx02
|
||||
|
||||
cliff_base.hgr: cliff_base.png
|
||||
$(PNG_TO_HGR) cliff_base.png > cliff_base.hgr
|
||||
|
||||
####
|
||||
|
||||
clean:
|
||||
rm -f *~ *.o *.lst
|
||||
|
BIN
games/sb/cliff_graphics/cliff_base.png
Normal file
BIN
games/sb/cliff_graphics/cliff_base.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
@ -165,26 +165,26 @@ error_string:
|
||||
|
||||
which_disk_array:
|
||||
.byte 1,1,1,1 ; TITLE, DUCK, ROOF, ASPLODE
|
||||
.byte 1,1,1,1 ; TARGET, CLIFF, RAT
|
||||
.byte 1,1,1 ; TARGET, CLIFF, RAT
|
||||
|
||||
load_address_array:
|
||||
.byte $60,$60,$60,$60 ; TITLE, DUCK, ROOF, ASPLODE
|
||||
.byte $60,$60,$60,$60 ; TARGET, CLIFF, RAT
|
||||
.byte $60,$60,$60 ; TARGET, CLIFF, RAT
|
||||
|
||||
|
||||
track_array:
|
||||
.byte 2, 5, 8,11 ; TITLE, DUCK, ROOF, ASPLODE
|
||||
.byte 11,11,11,24 ; TARGET, CLIFF, RAT
|
||||
.byte 2, 5,10,15 ; TITLE, DUCK, ROOF, ASPLODE
|
||||
.byte 20,25,30 ; TARGET, CLIFF, RAT
|
||||
|
||||
|
||||
sector_array:
|
||||
.byte 0, 0, 0, 0 ; TITLE, DUCK, ROOF, ASPLODE
|
||||
.byte 0, 0, 0, 0 ; TARGET, CLIFF, RAT
|
||||
.byte 0, 0, 0 ; TARGET, CLIFF, RAT
|
||||
|
||||
|
||||
length_array:
|
||||
.byte 36, 16, 16, 32 ; TITLE, DUCK, ROOF, ASPLODE
|
||||
.byte 32, 32, 32, 32 ; TARGET, CLIFF, RAT
|
||||
.byte 32, 32, 32 ; TARGET, CLIFF, RAT
|
||||
|
||||
|
||||
qload_end:
|
||||
|
74
games/sb/target.s
Normal file
74
games/sb/target.s
Normal file
@ -0,0 +1,74 @@
|
||||
; Archery minigame from Peasant's Quest
|
||||
;
|
||||
; Yet Another HR project
|
||||
;
|
||||
; by deater (Vince Weaver) <vince@deater.net>
|
||||
|
||||
|
||||
.include "zp.inc"
|
||||
.include "hardware.inc"
|
||||
|
||||
|
||||
hires_start:
|
||||
|
||||
;===================
|
||||
; set graphics mode
|
||||
;===================
|
||||
jsr HOME
|
||||
|
||||
bit HIRES
|
||||
bit FULLGR
|
||||
bit SET_GR
|
||||
bit PAGE1
|
||||
|
||||
|
||||
;===================
|
||||
; Load graphics
|
||||
;===================
|
||||
load_loop:
|
||||
|
||||
;=============================
|
||||
|
||||
|
||||
;==========================
|
||||
; Load Image
|
||||
;===========================
|
||||
|
||||
load_image:
|
||||
|
||||
; size in ldsizeh:ldsizel (f1/f0)
|
||||
|
||||
lda #<comp_data
|
||||
sta ZX0_src
|
||||
lda #>comp_data
|
||||
sta ZX0_src+1
|
||||
|
||||
|
||||
lda #$20
|
||||
|
||||
|
||||
jsr full_decomp
|
||||
|
||||
; rts
|
||||
|
||||
|
||||
|
||||
wait_until_keypress:
|
||||
lda KEYPRESS ; 4
|
||||
bpl wait_until_keypress ; 3
|
||||
bit KEYRESET ; clear the keyboard buffer
|
||||
|
||||
which_ok:
|
||||
lda #0
|
||||
sta WHICH_LOAD
|
||||
rts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.include "zx02_optim.s"
|
||||
|
||||
|
||||
comp_data:
|
||||
.incbin "target_graphics/target.hgr.zx02"
|
27
games/sb/target_graphics/Makefile
Normal file
27
games/sb/target_graphics/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
include ../../../Makefile.inc
|
||||
|
||||
ZX02 = ~/research/6502_compression/zx02.git/build/zx02 -f
|
||||
PNG_TO_HGR = ../../../utils/hgr-utils/png2hgr
|
||||
LINKER_SCRIPTS = ../../../linker_scripts
|
||||
DOS33 = ../../../utils/dos33fs-utils/dos33
|
||||
EMPTY_DISK = ../../../empty_disk/empty.dsk
|
||||
TOKENIZE = ../../../utils/asoft_basic-utils/tokenize_asoft
|
||||
PNG2GR = ../../../utils/gr-utils/png2gr
|
||||
PNG2SPRITES = ../../../utils/gr-utils/png2sprites
|
||||
HGR_SPRITE = ../../../utils/hgr-utils/hgr_make_sprite
|
||||
|
||||
all: target.hgr.zx02
|
||||
|
||||
####
|
||||
|
||||
target.hgr.zx02: target.hgr
|
||||
$(ZX02) target.hgr target.hgr.zx02
|
||||
|
||||
target.hgr: target.png
|
||||
$(PNG_TO_HGR) target.png > target.hgr
|
||||
|
||||
####
|
||||
|
||||
clean:
|
||||
rm -f *~ *.o *.lst
|
||||
|
BIN
games/sb/target_graphics/target.png
Normal file
BIN
games/sb/target_graphics/target.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
Loading…
Reference in New Issue
Block a user