Pixel Ledges: 2D Platformer Kit with Sprites, Tilemaps, Wall Jumps and Dash
README.md
hazards
Paints the pixel art of the hazards and power-ups that twoDKit.traps places from level text, and saves it to art/fx/ as nearest-filtered textures with pixelSprites.sprite materials. Level2D draws every W, L, X, F, H, D and T cell from these sheets. Run it again whenever the art code changes.
local Hazards = require("twoDKit.artgen.hazards")
Hazards.generate() -- saves art/fx/hazards, art/fx/buzzsaw, art/fx/powerups (+ materials)
local sheet = Hazards.hazardSheet() -- canvases only, for previews
hazards: 128x112, 16x16 frames, 8 columns
Identity: twoDKit.art.fx.hazards.
| Row | What | Frames |
|---|---|---|
| 0 | lava surface (L with no lava above): rolling waves, a bubble popping, an ember | 8 |
| 1 | lava body (L under lava): slow glowing convection | 8 |
| 2 | crumbling block (X): 0 whole, 1..3 cracking, 4..7 breaking into chunks | 8 |
| 3 | fire-jet nozzle (F), drawn pointing up: 0 off, 1..3 warming, 4..7 firing | 8 |
| 4 | flame column cell | 8 |
| 5 | flame tip cell | 8 |
| 6 | warning sputter: a pilot flame and smoke | 4 |
buzzsaw: 256x32, 32x32 frames
Identity: twoDKit.art.fx.buzzsaw. Row 0: the saw blade (W), 16 hooked teeth and a yellow and black hub, 8 frames of one tooth's turn so it loops.
powerups: 128x112, 16x16 frames, 8 columns
Identity: twoDKit.art.fx.powerups.
| Row | What | Frames |
|---|---|---|
| 0 | heart (H) idle: a double heartbeat with an orbiting glint | 8 |
| 1 | heart burst: pops into four little hearts | 6 |
| 2 | heart spent (lives full or off): a grey cracked stone heart | 8 |
| 3 | dash crystal (D) idle: a green diamond turning, light sweeping its facets | 8 |
| 4 | dash crystal shatter | 6 |
| 5 | dash crystal regrowing: a dashed outline running round | 8 |
| 6 | spring (T): 0 at rest, 1 squashed, 2 sprung, 3..7 wobbling back | 8 |