mirror of
https://github.com/a2-4am/4cade.git
synced 2025-01-13 21:30:38 +00:00
migrate RADIAL4 effect to external file, and some cleanup
This commit is contained in:
parent
cf73196f63
commit
8befda92c1
@ -9,6 +9,7 @@ mirror_cols = $BE00 ; $28 bytes
|
|||||||
hgr1hi = $BE40 ; $C0 bytes
|
hgr1hi = $BE40 ; $C0 bytes
|
||||||
hgr1himirror = $BF40 ; $C0 bytes
|
hgr1himirror = $BF40 ; $C0 bytes
|
||||||
Coordinates1Bit= $8800 ; $3481 bytes ($3480 on disk + 1 byte EOF marker)
|
Coordinates1Bit= $8800 ; $3481 bytes ($3480 on disk + 1 byte EOF marker)
|
||||||
|
EndCoordinates1Bit=Coordinates1Bit+$3480
|
||||||
|
|
||||||
!source "src/fx/macros.a"
|
!source "src/fx/macros.a"
|
||||||
|
|
||||||
@ -130,7 +131,7 @@ InitOnce
|
|||||||
+LOAD_FILE_AT .CoordinatesFile, Coordinates1Bit
|
+LOAD_FILE_AT .CoordinatesFile, Coordinates1Bit
|
||||||
+READ_RAM1_WRITE_RAM1
|
+READ_RAM1_WRITE_RAM1
|
||||||
lda #$80
|
lda #$80
|
||||||
sta Coordinates1Bit + $3480
|
sta EndCoordinates1Bit
|
||||||
}
|
}
|
||||||
|
|
||||||
!macro FX_REVERSE_1BIT {
|
!macro FX_REVERSE_1BIT {
|
||||||
@ -138,9 +139,9 @@ InitOnce
|
|||||||
sty $f0
|
sty $f0
|
||||||
lda #>Coordinates1Bit
|
lda #>Coordinates1Bit
|
||||||
sta $f1
|
sta $f1
|
||||||
lda #<(Coordinates1Bit + $3480 - 2)
|
lda #<(EndCoordinates1Bit - 2)
|
||||||
sta $f2
|
sta $f2
|
||||||
lda #>(Coordinates1Bit + $3480 - 2)
|
lda #>(EndCoordinates1Bit - 2)
|
||||||
sta $f3
|
sta $f3
|
||||||
clc
|
clc
|
||||||
!byte $24
|
!byte $24
|
||||||
|
@ -100,4 +100,4 @@ CoordinatesFile
|
|||||||
!text "FX/RADIAL.DATA"
|
!text "FX/RADIAL.DATA"
|
||||||
|
|
||||||
Coordinates = Coordinates1Bit
|
Coordinates = Coordinates1Bit
|
||||||
EndCoordinates = Coordinates + $3480
|
EndCoordinates = EndCoordinates1Bit
|
||||||
|
@ -18,4 +18,4 @@ CoordinatesFile
|
|||||||
!text "FX/RADIAL.DATA"
|
!text "FX/RADIAL.DATA"
|
||||||
|
|
||||||
Coordinates = Coordinates1Bit
|
Coordinates = Coordinates1Bit
|
||||||
EndCoordinates = Coordinates + $3480
|
EndCoordinates = EndCoordinates1Bit
|
||||||
|
@ -91,4 +91,4 @@ CoordinatesFile
|
|||||||
!text "FX/RADIAL.DATA"
|
!text "FX/RADIAL.DATA"
|
||||||
|
|
||||||
Coordinates = Coordinates1Bit
|
Coordinates = Coordinates1Bit
|
||||||
EndCoordinates = Coordinates + $3480
|
EndCoordinates = EndCoordinates1Bit
|
||||||
|
@ -1,17 +1,21 @@
|
|||||||
;license:MIT
|
;license:MIT
|
||||||
;(c) 2019 by 4am
|
;(c) 2019-2020 by 4am/qkumba
|
||||||
;
|
;
|
||||||
!cpu 6502
|
!cpu 6502
|
||||||
!to "build/FX/RADIAL4",plain
|
!to "build/FX/RADIAL4",plain
|
||||||
*=$6000
|
*=$6000
|
||||||
|
|
||||||
!source "src/fx/fx.hgr.precomputed.1bit.a"
|
!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"
|
!source "src/fx/fx.hgr.radial.common.a"
|
||||||
|
|
||||||
!if * and 1 {
|
CoordinatesFile
|
||||||
!byte 0
|
!byte 14
|
||||||
}
|
!text "FX/RADIAL.DATA"
|
||||||
Coordinates
|
|
||||||
!source "src/fx/fx.hgr.radial4.data.a"
|
Coordinates = Coordinates1Bit
|
||||||
EndCoordinates
|
EndCoordinates = EndCoordinates1Bit
|
||||||
!byte $80
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user