mirror of
https://github.com/a2-4am/4cade.git
synced 2025-08-10 08:25:13 +00:00
some wipes
This commit is contained in:
@@ -1 +1 @@
|
||||
RIPPLE
|
||||
RIPPLE
|
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from math import sqrt, sin, cos, acos, pi
|
||||
import util
|
||||
|
||||
max_x = 280//2
|
||||
max_y = 192//2
|
||||
@@ -22,26 +23,13 @@ for k_mul in range(500):
|
||||
continue
|
||||
coords.append((x,y))
|
||||
|
||||
d = {}
|
||||
unique_coords = []
|
||||
for c in coords:
|
||||
if not d.get(c):
|
||||
unique_coords.append(c)
|
||||
d[c] = 1
|
||||
unique_coords = util.unique(coords)
|
||||
unique_vals = util.vals_1bit(unique_coords)
|
||||
|
||||
unique_vals = []
|
||||
for x, y in unique_coords:
|
||||
aval = "$" + hex(y)[2:].rjust(2, "0").upper()
|
||||
bval = "%" + \
|
||||
bin(x%7)[2:].rjust(3, "0") + \
|
||||
bin(x//7)[2:].rjust(5, "0")
|
||||
unique_vals.append((aval, bval))
|
||||
|
||||
with open("../../../src/fx/fx.hgr.slow.star.data.a", "w") as f:
|
||||
for aval, bval in unique_vals:
|
||||
f.write(" !byte %s,%s\n" % (aval, bval))
|
||||
util.write("../../../src/fx/fx.hgr.slow.star.data.a", unique_vals)
|
||||
|
||||
unique_vals.reverse()
|
||||
with open("../../../src/fx/fx.hgr.slow.star.in.data.a", "w") as f:
|
||||
for aval, bval in unique_vals:
|
||||
f.write(" !byte %s,%s\n" % (aval, bval))
|
||||
util.write("../../../src/fx/fx.hgr.slow.star.in.data.a", unique_vals)
|
||||
|
||||
mult_coords = util.ripple(util.radial_multiply(unique_coords))
|
||||
util.write("../../../src/fx/fx.hgr.full.of.stars.data.a", util.vals_1bit(mult_coords))
|
||||
|
@@ -28,21 +28,10 @@ for i in range(30000, 0, -1):
|
||||
unique_coords = util.unique(coords)
|
||||
unique_vals = util.vals_1bit(unique_coords)
|
||||
|
||||
with open("../../../src/fx/fx.hgr.radial.data.a", "w") as f:
|
||||
for aval, bval in unique_vals:
|
||||
f.write(" !byte %s,%s\n" % (aval, bval))
|
||||
|
||||
with open("../../../src/fx/fx.hgr.radial2.data.a", "w") as f:
|
||||
for aval, bval in util.halfripple(unique_vals):
|
||||
f.write(" !byte %s,%s\n" % (aval, bval))
|
||||
|
||||
with open("../../../src/fx/fx.hgr.radial4.data.a", "w") as f:
|
||||
for aval, bval in util.ripple(unique_vals):
|
||||
f.write(" !byte %s,%s\n" % (aval, bval))
|
||||
|
||||
with open("../../../src/fx/fx.hgr.radial5.data.a", "w") as f:
|
||||
for aval, bval in util.ripple(util.halfripple(unique_vals)):
|
||||
f.write(" !byte %s,%s\n" % (aval, bval))
|
||||
util.write("../../../src/fx/fx.hgr.radial.data.a", unique_vals)
|
||||
util.write("../../../src/fx/fx.hgr.radial2.data.a", util.halfripple(unique_vals))
|
||||
util.write("../../../src/fx/fx.hgr.radial4.data.a", util.ripple(unique_vals))
|
||||
util.write("../../../src/fx/fx.hgr.radial5.data.a", util.halfripple(unique_vals))
|
||||
|
||||
mult_coords = util.ripple(util.radial_multiply(util.ripple(util.radial_multiply(util.ripple(util.radial_multiply(unique_coords))))))
|
||||
util.write("../../../src/fx/fx.hgr.pinwheels.data.a", util.vals_1bit(mult_coords))
|
||||
|
17
src/fx/fx.hgr.full.of.stars.a
Normal file
17
src/fx/fx.hgr.full.of.stars.a
Normal file
@@ -0,0 +1,17 @@
|
||||
;license:MIT
|
||||
;(c) 2019 by 4am
|
||||
;
|
||||
!cpu 6502
|
||||
!to "build/FX/FULL.OF.STARS",plain
|
||||
*=$6000
|
||||
|
||||
!source "src/fx/fx.hgr.precomputed.1bit.a"
|
||||
!source "src/fx/fx.hgr.radial.common.a"
|
||||
|
||||
!if * and 1 {
|
||||
!byte 0
|
||||
}
|
||||
Coordinates
|
||||
!source "src/fx/fx.hgr.full.of.stars.data.a"
|
||||
EndCoordinates
|
||||
!byte $80
|
6720
src/fx/fx.hgr.full.of.stars.data.a
Normal file
6720
src/fx/fx.hgr.full.of.stars.data.a
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user