ds: add new backgrounds

This commit is contained in:
Vince Weaver 2019-10-03 00:49:35 -04:00
parent fbd613486d
commit 86032b87c3
9 changed files with 111 additions and 13 deletions

View File

@ -32,6 +32,7 @@ demosplash.o: demosplash.s \
pt3_lib_init.s pt3_lib_core.s pt3_lib_mockingboard.s \
interrupt_handler.s \
starbase.s starbase_action.s \
graphics/starbase/starbase.inc \
graphics/sprites/alien.inc graphics/sprites/astronaut.inc \
dya_space_demo.pt3 appleII_40_96.inc
ca65 -o demosplash.o demosplash.s -l demosplash.lst

View File

@ -0,0 +1,22 @@
include ../../../Makefile.inc
PNG2RLE = ../../../gr-utils/png2rle
PNG2LZ4 = ../../../gr-utils/png2lz4
all: starbase.inc
#####
starbase.inc: $(PNG2RLE) \
jail.png hallway.png window.png ship.png
$(PNG2RLE) asm jail.png jail_rle >> starbase.inc
$(PNG2RLE) asm hallway.png hallway_rle >> starbase.inc
$(PNG2RLE) asm window.png window_rle >> starbase.inc
$(PNG2RLE) asm ship.png ship_rle >> starbase.inc
#####
clean:
rm -f *~ *.o *.lst *.lzz *.inc

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@ -0,0 +1,75 @@
jail_rle: .byte $28 ; ysize=48
.byte $A0,$78,$55, $A0,$FF,$00, $A0,$69,$00, $AB,$50, $A0,$1D,$00, $AC,$55, $50
.byte $A0,$1B,$00, $AE,$55, $50, $A0,$19,$00, $A0,$10,$55, $50, $A0,$17,$00
.byte $A0,$12,$55, $A0,$16,$50, $A0,$FF,$55, $A0,$19,$55
.byte $A1
hallway_rle: .byte $28 ; ysize=48
.byte $A3,$55, $A0,$11,$AA, $AD,$55, $A7,$AA, $55,$55, $A0,$01,$A5, $A0,$11,$AA
.byte $AD,$55, $5A, $A6,$AA, $55,$55, $A0,$12,$AA, $AE,$55, $A6,$AA
.byte $55,$55, $A0,$12,$AA, $AE,$55, $A6,$AA, $55, $A0,$01,$A5, $A0,$11,$AA
.byte $AF,$55, $A6,$5A, $55, $A0,$11,$AA, $5A, $A0,$16,$55, $A0,$11,$AA
.byte $A0,$17,$55, $A0,$10,$AA, $5A, $A0,$17,$55, $A0,$10,$AA, $A0,$17,$55, $A0,$10,$AA
.byte $A0,$18,$55, $A0,$10,$AA, $A0,$18,$55, $AF,$AA, $A0,$19,$55, $AF,$AA, $A0,$19,$55
.byte $AB,$AA, $A0,$1D,$55, $5A, $AA,$AA, $A0,$1E,$55, $AA,$AA, $A0,$1D,$55
.byte $75, $AA,$7A, $A0,$1D,$75, $A0,$C8,$77, $A0,$28,$87, $A0,$28,$77
.byte $A1
window_rle: .byte $28 ; ysize=48
.byte $A4,$55, $11, $01,$01, $71,$71, $01, $A4,$71, $01
.byte $71,$71, $A0,$12,$01, $11, $A8,$55, $11, $00,$00, $77,$77
.byte $00, $A5,$77, $70, $07, $77, $A0,$11,$00, $11
.byte $A8,$55, $11, $00,$00, $07, $77, $00, $A6,$77
.byte $70, $07, $77, $A0,$10,$00, $11, $A8,$55, $11
.byte $A3,$00, $77, $00, $A7,$77, $70, $07, $77
.byte $AF,$00, $11, $A8,$55, $11, $A3,$00, $07, $70
.byte $07, $A7,$77, $70, $07, $77, $AE,$00, $11
.byte $A8,$55, $11, $A4,$00, $77, $00, $A8,$77, $70
.byte $07, $77, $AD,$00, $11, $A8,$55, $11, $A4,$00
.byte $77, $00, $A3,$77, $57, $55,$55, $57, $77,$77
.byte $70, $07, $77, $AC,$00, $11, $A8,$55, $11
.byte $A4,$00, $77,$77, $07, $77,$77, $A4,$55, $57, $77,$77
.byte $70, $07, $77, $AB,$00, $11, $A8,$55, $11
.byte $A4,$00, $07, $77, $00, $77,$77, $A6,$55, $77,$77
.byte $70, $07, $77, $AA,$00, $11, $A8,$55, $11
.byte $A5,$00, $77, $00, $77,$77, $75, $55,$55, $00
.byte $05,$05, $55, $77,$77, $70, $07, $70, $A9,$00
.byte $11, $A8,$55, $11, $A5,$00, $77, $70, $07
.byte $77,$77, $55, $A4,$00, $05, $55, $77,$77, $00
.byte $77, $A9,$00, $11, $A8,$55, $11, $A6,$00, $77
.byte $70, $77,$77, $55,$55, $A4,$00, $05, $55, $77
.byte $A3,$57, $A4,$55, $50,$50, $00,$00, $11, $A5,$55, $95
.byte $99, $55, $11, $A7,$00, $77, $00, $77
.byte $75, $55, $A5,$00, $50, $55, $A8,$45, $A3,$55
.byte $11, $55, $99, $95, $A3,$55, $59, $55
.byte $11, $A7,$00, $77, $70, $77,$77, $55, $A3,$00
.byte $50, $45, $AB,$44, $45,$45, $11, $55, $59
.byte $A6,$55, $11, $A8,$00, $77, $00, $77, $55
.byte $00,$00, $55, $44, $C4, $CC, $44,$44, $A4,$C4
.byte $CC,$CC, $C4, $A3,$44, $11, $A8,$55, $11, $A8,$00
.byte $77, $00, $77,$77, $55, $44,$44, $AD,$CC, $44,$44
.byte $11, $A4,$55, $A4,$75, $11, $A9,$00, $77, $00
.byte $77, $55, $44, $AF,$CC, $44, $11, $A4,$75
.byte $A4,$77, $11, $A9,$10, $17, $10, $17,$17, $15
.byte $14, $AF,$1C, $11, $A0,$A4,$77, $A0,$28,$87, $A0,$28,$77
.byte $A1
ship_rle: .byte $28 ; ysize=48
.byte $A3,$55, $A0,$14,$AA, $A6,$FF, $55,$55, $A9,$AA, $55,$55, $A0,$01,$A5
.byte $A0,$14,$AA, $A7,$FF, $55, $5A, $A8,$AA, $55,$55, $A0,$15,$AA
.byte $A8,$FF, $55, $5A, $A7,$AA, $55,$55, $A0,$15,$AA, $A9,$FF
.byte $55,$55, $A6,$AA, $55, $A0,$01,$A5, $A0,$15,$AA, $AA,$FF, $55
.byte $5A, $A5,$AA, $55, $A0,$16,$AA, $AB,$FF, $55,$55, $A4,$AA
.byte $55, $A0,$16,$AA, $AC,$FF, $55, $5A, $A3,$AA, $55
.byte $A0,$16,$AA, $AD,$FF, $55, $A3,$AA, $55, $A0,$12,$AA, $6A
.byte $A3,$AA, $A0,$11,$FA, $A0,$13,$AA, $22, $26, $6A, $A0,$01,$AA
.byte $A0,$11,$FF, $A0,$13,$AA, $62, $22,$22, $26, $FF,$FF, $A5,$1F
.byte $4F, $A5,$2F, $4F, $A3,$2F, $A0,$13,$AA, $22, $26,$26
.byte $62, $FF,$FF, $A5,$11, $44, $A5,$22, $44, $A3,$22
.byte $A0,$13,$AA, $62, $A3,$22, $A3,$FF, $A3,$11, $A3,$44, $A3,$22
.byte $A3,$44, $22,$22, $A0,$13,$AA, $22, $A3,$26, $A3,$FF, $F1
.byte $11, $41, $A3,$44, $42, $22, $42, $A3,$44
.byte $42, $22, $5A, $A0,$12,$AA, $A4,$62, $A4,$FF, $11
.byte $A5,$44, $22, $A5,$44, $22, $55, $A0,$12,$AA, $A4,$22
.byte $A0,$11,$FF, $75, $A0,$12,$7A, $62, $A3,$26, $A0,$11,$FF, $A0,$13,$77
.byte $A3,$22, $62, $A0,$11,$FF, $A0,$13,$77, $62, $26,$26, $22
.byte $A0,$11,$F7, $A0,$13,$77, $22,$22, $62, $76, $A0,$11,$FF, $A0,$13,$77
.byte $62, $76, $77,$77, $A0,$11,$FF, $A0,$28,$77, $A0,$28,$87, $A0,$28,$77
.byte $A1

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

@ -84,7 +84,7 @@ wait_loop:
.include "starbase_alien_laser.s"
; room backgrounds
.include "graphics/starbase/ootw_c4_city.inc"
.include "graphics/starbase/starbase.inc"
; sprites
.include "graphics/sprites/astronaut.inc"
.include "graphics/sprites/alien.inc"

View File

@ -152,9 +152,9 @@ room0:
room0_falling:
; load background
lda #>(recharge_rle)
lda #>(jail_rle)
sta GBASH
lda #<(recharge_rle)
lda #<(jail_rle)
jmp room_setup_done
@ -210,9 +210,9 @@ room2:
sta ASTRONAUT_Y
; load background
lda #>(causeway1_rle)
lda #>(window_rle)
sta GBASH
lda #<(causeway1_rle)
lda #<(window_rle)
jmp room_setup_done
@ -246,25 +246,25 @@ room3:
sta ASTRONAUT_Y
; load top high
lda #>(causeway2_rle)
lda #>(ship_rle)
sta GBASH
lda #<(causeway2_rle)
lda #<(ship_rle)
sta GBASL
lda #$10 ; load to page $1000
jsr load_rle_gr
; load pit background even higher
lda #>(pit_rle)
lda #>(ship_rle)
sta GBASH
lda #<(pit_rle)
lda #<(ship_rle)
sta GBASL
lda #$BC ; load to page $BC00
jsr load_rle_gr
; load background
lda #>(causeway2_rle)
lda #>(ship_rle)
sta GBASH
lda #<(causeway2_rle)
lda #<(ship_rle)
jmp room_setup_done
@ -306,9 +306,9 @@ room4:
r4_impaled:
; load background
lda #>(pit_rle)
lda #>(ship_rle)
sta GBASH
lda #<(pit_rle)
lda #<(ship_rle)
jmp room_setup_done