mode7: more work on the sky scrolling

This commit is contained in:
Vince Weaver 2017-12-18 15:43:54 -05:00
parent 531b20478b
commit ca4b425eff
3 changed files with 28 additions and 7 deletions

View File

@ -88,7 +88,28 @@ int main(int argc, char **argv) {
plot(19,1,5); plot(20,0,5); plot(20,2,5); plot(21,1,5);
plot(20,1,15);
/* 20-40 */
plot(24,4,7); plot(29,5,7); plot(30,2,15); plot(33,0,15);
plot(35,2,5);
/* 41-60 */
plot(41,0,13); plot(42,0,13);
plot(42,1,13); plot(43,1,13);
plot(43,2,13);
plot(43,3,13);
plot(42,4,13); plot(43,4,13);
plot(41,5,13); plot(42,5,13);
plot(49,5,13); plot(51,1,15); plot(51,2,15);
plot(53,3,15); plot(55,3,15); plot(55,4,15);
plot(57,0,1); plot(57,1,1);
/* Copy edges to make it wrap around */
for(y=0;y<4;y++) {
for(x=0;x<40;x++) {
row[y][x+182]=row[y][x];
}
}
printf("; Original size = %d bytes\n",length*4);

View File

@ -69,11 +69,11 @@ scroll_forever:
; ANGLE 0-15 sets angle
; CV is Y position to display at
; 182/220... 220/16 = 13.75
; 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
; 0 13 27 41 55 68 82 96 110 123 137 151 165 178 192 206 220
; 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
; 0 11 22 34 45 56 68 79 91 102 113 125 136 147 159 170 182
scroll_offsets:
.byte 0,13,27,41,55,68,82,96,110,123,137,151,165,178,192,206
.byte 0,11,22,34,45,56,68,79,91,102,113,125,136,147,159,170
scroll_background:
ldy ANGLE

View File

@ -2,9 +2,9 @@
sky_background:
; scroll_length:
.byte 255
.byte $A9,$00,$D0,$A9,$00,$50,$F5,$50,$A0,$EA,$00
.byte $A5,$00,$0F,$A6,$00,$F0,$A4,$00,$0F,$00,$00,$05,$A0,$EB,$00
.byte $00,$00,$F0,$AA,$00,$F0,$00,$00,$F0,$A0,$EF,$00
.byte $A9,$00,$D0,$A9,$00,$50,$F5,$50,$AB,$00,$0F,$A7,$00,$0D,$DD,$D0,$A7,$00,$F0,$A5,$00,$11,$A0,$85,$00,$D0,$A9,$00,$50,$F5,$50,$AB,$00,$0F,$A0,$28,$00
.byte $A5,$00,$0F,$A6,$00,$F0,$A4,$00,$0F,$00,$00,$05,$A9,$00,$0F,$A4,$00,$05,$A7,$00,$DD,$A7,$00,$0F,$00,$F0,$00,$F0,$A0,$83,$00,$0F,$A6,$00,$F0,$A4,$00,$0F,$00,$00,$05,$A9,$00,$0F,$A4,$00,$05,$A0,$26,$00
.byte $00,$00,$F0,$AA,$00,$F0,$00,$00,$F0,$A7,$00,$07,$A4,$00,$70,$AB,$00,$D0,$DD,$0D,$A5,$00,$D0,$A5,$00,$0F,$A0,$80,$00,$F0,$AA,$00,$F0,$00,$00,$F0,$A7,$00,$07,$A4,$00,$70,$A0,$2C,$00
.byte $A0,$FF,$00,$00
.byte $A1
; Compressed size = 43 bytes
; Compressed size = 137 bytes