peasant: more graphics works

This commit is contained in:
Vince Weaver 2021-08-10 15:30:02 -04:00
parent 2c2ff1d909
commit f3ba9135aa
7 changed files with 88 additions and 33 deletions

View File

@ -25,7 +25,7 @@ PEASANT: peasant.o
ld65 -o PEASANT peasant.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
peasant.o: peasant.s graphics/graphics.inc \
directions.s cottage.s
directions.s cottage.s lake_w.s lake_e.s river.s
ca65 -o peasant.o peasant.s -l peasant.lst
###

View File

@ -22,7 +22,7 @@ graphics.inc: \
echo "tips_lzsa: .incbin \"tips.lzsa\"" >> graphics.inc
echo "cottage_lzsa: .incbin \"cottage.lzsa\"" >> graphics.inc
echo "lake_w_lzsa: .incbin \"lake_w.lzsa\"" >> graphics.inc
# echo "lake_e_lzsa: .incbin \"lake_e.lzsa\"" >> graphics.inc
echo "lake_e_lzsa: .incbin \"lake_e.lzsa\"" >> graphics.inc
# echo "river_lzsa: .incbin \"river.lzsa\"" >> graphics.inc
# echo "knight_lzsa: .incbin \"knight.lzsa\"" >> graphics.inc

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 14 KiB

26
games/peasant/lake_e.s Normal file
View File

@ -0,0 +1,26 @@
; Lake East
;************************
; Lake East
;************************
lake_east:
lda #<(lake_e_lzsa)
sta getsrc_smc+1
lda #>(lake_e_lzsa)
sta getsrc_smc+2
lda #$40
jsr decompress_lzsa2_fast
lda #<peasant_text
sta OUTL
lda #>peasant_text
sta OUTH
jsr hgr_put_string
jsr wait_until_keypress
rts

26
games/peasant/lake_w.s Normal file
View File

@ -0,0 +1,26 @@
; Lake West
;************************
; Lake West
;************************
lake_west:
lda #<(lake_w_lzsa)
sta getsrc_smc+1
lda #>(lake_w_lzsa)
sta getsrc_smc+2
lda #$40
jsr decompress_lzsa2_fast
lda #<peasant_text
sta OUTL
lda #>peasant_text
sta OUTH
jsr hgr_put_string
jsr wait_until_keypress
rts

View File

@ -78,49 +78,22 @@ hgr_display:
; Lake West
;************************
lda #<(lake_w_lzsa)
sta getsrc_smc+1
lda #>(lake_w_lzsa)
sta getsrc_smc+2
lda #$40
jsr decompress_lzsa2_fast
jsr wait_until_keypress
.if 0
jsr lake_west
;************************
; Lake East
;************************
lda #<(lake_e_lzsa)
sta getsrc_smc+1
lda #>(lake_e_lzsa)
sta getsrc_smc+2
jsr lake_east
lda #$40
.if 0
jsr decompress_lzsa2_fast
jsr wait_until_keypress
;************************
; River
;************************
lda #<(river_lzsa)
sta getsrc_smc+1
lda #>(river_lzsa)
sta getsrc_smc+2
lda #$40
jsr decompress_lzsa2_fast
jsr wait_until_keypress
jsr river
;************************
@ -149,6 +122,10 @@ forever:
.include "directions.s"
.include "cottage.s"
.include "lake_w.s"
.include "lake_e.s"
;.include "river.s"
.include "hgr_font.s"

26
games/peasant/river.s Normal file
View File

@ -0,0 +1,26 @@
; o/~ At the beautiful, the beautiful, River o/~
;************************
; River
;************************
river:
lda #<(river_lzsa)
sta getsrc_smc+1
lda #>(river_lzsa)
sta getsrc_smc+2
lda #$40
jsr decompress_lzsa2_fast
lda #<peasant_text
sta OUTL
lda #>peasant_text
sta OUTH
jsr hgr_put_string
jsr wait_until_keypress
rts