mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-28 00:52:00 +00:00
load radial2 data from external files and transform it at runtime
This commit is contained in:
parent
63ca80cfef
commit
925c5af8b2
@ -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
|
||||
|
||||
|
@ -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 ++
|
||||
|
@ -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
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user