migrate RADIAL4 effect to external file, and some cleanup

This commit is contained in:
4am 2020-11-14 23:47:14 -05:00
parent cf73196f63
commit 8befda92c1
6 changed files with 19 additions and 6734 deletions

View File

@ -9,6 +9,7 @@ mirror_cols = $BE00 ; $28 bytes
hgr1hi = $BE40 ; $C0 bytes
hgr1himirror = $BF40 ; $C0 bytes
Coordinates1Bit= $8800 ; $3481 bytes ($3480 on disk + 1 byte EOF marker)
EndCoordinates1Bit=Coordinates1Bit+$3480
!source "src/fx/macros.a"
@ -130,7 +131,7 @@ InitOnce
+LOAD_FILE_AT .CoordinatesFile, Coordinates1Bit
+READ_RAM1_WRITE_RAM1
lda #$80
sta Coordinates1Bit + $3480
sta EndCoordinates1Bit
}
!macro FX_REVERSE_1BIT {
@ -138,9 +139,9 @@ InitOnce
sty $f0
lda #>Coordinates1Bit
sta $f1
lda #<(Coordinates1Bit + $3480 - 2)
lda #<(EndCoordinates1Bit - 2)
sta $f2
lda #>(Coordinates1Bit + $3480 - 2)
lda #>(EndCoordinates1Bit - 2)
sta $f3
clc
!byte $24

View File

@ -100,4 +100,4 @@ CoordinatesFile
!text "FX/RADIAL.DATA"
Coordinates = Coordinates1Bit
EndCoordinates = Coordinates + $3480
EndCoordinates = EndCoordinates1Bit

View File

@ -18,4 +18,4 @@ CoordinatesFile
!text "FX/RADIAL.DATA"
Coordinates = Coordinates1Bit
EndCoordinates = Coordinates + $3480
EndCoordinates = EndCoordinates1Bit

View File

@ -91,4 +91,4 @@ CoordinatesFile
!text "FX/RADIAL.DATA"
Coordinates = Coordinates1Bit
EndCoordinates = Coordinates + $3480
EndCoordinates = EndCoordinates1Bit

View File

@ -1,17 +1,21 @@
;license:MIT
;(c) 2019 by 4am
;(c) 2019-2020 by 4am/qkumba
;
!cpu 6502
!to "build/FX/RADIAL4",plain
*=$6000
!source "src/fx/fx.hgr.precomputed.1bit.a"
+FX_INITONCE_1BIT CoordinatesFile, Start
+FX_RIPPLE_1BIT aslmod2
Start
!source "src/fx/fx.hgr.radial.common.a"
!if * and 1 {
!byte 0
}
Coordinates
!source "src/fx/fx.hgr.radial4.data.a"
EndCoordinates
!byte $80
CoordinatesFile
!byte 14
!text "FX/RADIAL.DATA"
Coordinates = Coordinates1Bit
EndCoordinates = EndCoordinates1Bit

File diff suppressed because it is too large Load Diff