load radial2 data from external files and transform it at runtime

This commit is contained in:
Peter Ferrie 2020-11-14 19:18:44 -08:00
parent 63ca80cfef
commit 925c5af8b2
7 changed files with 20 additions and 6735 deletions

View File

@ -8,7 +8,7 @@
!source "src/fx/fx.hgr.precomputed.1bit.a"
+FX_INITONCE_1BIT CoordinatesFile, Start
+FX_RIPPLE_1BIT
+FX_RIPPLE_1BIT aslmod2
Start
+FX_PRECOMPUTED_1BIT Coordinates1Bit

View File

@ -174,7 +174,7 @@ InitOnce
++
}
!macro FX_RIPPLE_1BIT {
!macro FX_RIPPLE_1BIT .target {
lda #2 ; <(Coordinates1Bit + 2)
sta $f0
ldy #0
@ -200,7 +200,7 @@ InitOnce
--- ldx #4
-- ldy $ee, x
lda $ef, x
jsr aslmod
jsr .target
sty $ee, x
sta $ef, x
sty $ec
@ -229,8 +229,9 @@ InitOnce
dec $ef
bpl ---
bmi +++ ; always branches
aslmod
aslmod2
jsr +
aslmod
+ cmp #$1A
bcc +
bne ++

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@
!source "src/fx/fx.hgr.precomputed.1bit.a"
+FX_INITONCE_1BIT CoordinatesFile, Start
+FX_RIPPLE_1BIT
+FX_RIPPLE_1BIT aslmod2
Start
+FX_PRECOMPUTED_1BIT Coordinates1Bit

View File

@ -8,7 +8,7 @@
!source "src/fx/fx.hgr.precomputed.1bit.a"
+FX_INITONCE_1BIT CoordinatesFile, Start
+FX_RIPPLE_1BIT
+FX_RIPPLE_1BIT aslmod2
Start
+FX_PRECOMPUTED_1BIT Coordinates1Bit

View File

@ -8,7 +8,7 @@
!source "src/fx/fx.hgr.precomputed.1bit.a"
+FX_INITONCE_1BIT CoordinatesFile, Start
+FX_RIPPLE_1BIT
+FX_RIPPLE_1BIT aslmod2
Start
+FX_PRECOMPUTED_1BIT Coordinates1Bit