juicefx
Paints twoDKit's `juice` effect sheet, `art/fx/juice` (256 x 224, 32 x 32 frames, 8 columns), with `twoDKit.paint`: the death burst, the gem pop, the checkpoint star fountain, run-start dust, wall-slide specks, the hard-landing cloud and dash speed lines that `twoDKit.juice` play…
artgen/juicefx
Paints twoDKit's juice effect sheet, art/fx/juice (256 x 224, 32 x 32 frames, 8 columns), with twoDKit.paint: the death burst, the gem pop, the checkpoint star fountain, run-start dust, wall-slide specks, the hard-landing cloud and dash speed lines that twoDKit.juice plays. The older fx sheet keeps its rows as they are.
rows: the layout,{ row, frames, fps, pivotY }per effect (pivotY 0 = anchored at the feet, 0.5 = centred).paint() -> canvas,generate() -> path(writes the texture and its sprite material).
require("twoDKit.artgen.juicefx").generate()
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2strict
cell(c: Canvas, col: number, row: number) → Cell
| arg | type | description |
|---|---|---|
| c | Canvas | |
| col | number | |
| row | number |
px(f: Cell, x: number, y: number, col: Color) → void
| arg | type | description |
|---|---|---|
| f | Cell | |
| x | number | |
| y | number | |
| col | Color |
block(f: Cell, x: number, y: number, size: number, col: Color) → void
| arg | type | description |
|---|---|---|
| f | Cell | |
| x | number | |
| y | number | |
| size | number | |
| col | Color |
disc(f: Cell, cx: number, cy: number, r: number, col: Color) → void
| arg | type | description |
|---|---|---|
| f | Cell | |
| cx | number | |
| cy | number | |
| r | number | |
| col | Color |
ring(f: Cell, cx: number, cy: number, r: number, width: number, col: Color, gaps: number?) → void
| arg | type | description |
|---|---|---|
| f | Cell | |
| cx | number | |
| cy | number | |
| r | number | |
| width | number | |
| col | Color | |
| gaps | number? |
star(f: Cell, x: number, y: number, size: number, core: Color, arm: Color) → void
| arg | type | description |
|---|---|---|
| f | Cell | |
| x | number | |
| y | number | |
| size | number | |
| core | Color | |
| arm | Color |
puff(f: Cell, cx: number, cy: number, r: number, pal: PuffPal) → void
| arg | type | description |
|---|---|---|
| f | Cell | |
| cx | number | |
| cy | number | |
| r | number | |
| pal | PuffPal |
burstFrames(c: Canvas) → void
| arg | type | description |
|---|---|---|
| c | Canvas |
popFrames(c: Canvas) → void
| arg | type | description |
|---|---|---|
| c | Canvas |
flagFrames(c: Canvas) → void
| arg | type | description |
|---|---|---|
| c | Canvas |
runPuffFrames(c: Canvas) → void
runPuff: a small kick of dust when you start running or turn
| arg | type | description |
|---|---|---|
| c | Canvas |
slideFrames(c: Canvas) → void
slide: scraping specks off a wall (wall on the right of the cell centre)
| arg | type | description |
|---|---|---|
| c | Canvas |
hardLandFrames(c: Canvas) → void
hardLand: a wide cloud and flying grit after a long fall
| arg | type | description |
|---|---|---|
| c | Canvas |
streakFrames(c: Canvas) → void
streak: speed lines left behind a dash (drawn trailing to the left)
| arg | type | description |
|---|---|---|
| c | Canvas |
halo(f: Cell, cx: number, cy: number, r: number, levels: { { r: number, col: Color, dither: number } }) → void
| arg | type | description |
|---|---|---|
| f | Cell | |
| cx | number | |
| cy | number | |
| r | number | |
| levels | { { r: number, col: Color, dither: number } } |
glowFrames(c: Canvas) → void
| arg | type | description |
|---|---|---|
| c | Canvas |
embersFrames(c: Canvas) → void
embers: sparks rising off a lit checkpoint (anchored at the feet), each drifting on its own wobble and cooling white, gold, orange, red
| arg | type | description |
|---|---|---|
| c | Canvas |
confettiFrames(c: Canvas) → void
| arg | type | description |
|---|---|---|
| c | Canvas |
fireworkFrames(c: Canvas, row: number, pal: FirePal, seed: number) → void
| arg | type | description |
|---|---|---|
| c | Canvas | |
| row | number | |
| pal | FirePal | |
| seed | number |
paint( ) → Canvas
Paint the sheet (no saving).
generate( ) → string
Paint and save `art/fx/juice` (texture + sprite material). Returns the texture path.
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.