pixel-studio
/pixel-studio
Tworzy retro animacje wideo w stylu pixel art, takie jak sceny 8-bit, postacie i wyjaśniacze, jako kod w silniku Pixel Studio.
- Autor
- MuhammadaliMS ↗
- Repozytorium
- pixel-studio ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 27.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Tworzy retro animacje wideo w stylu pixel art, takie jak sceny 8-bit, postacie i wyjaśniacze, jako kod w silniku Pixel Studio.
Wyzwalacze z opisu
Oryginalny opis (EN)
Make retro pixel-art animation videos (collapsing landmarks, little characters, sci-fi labs, explainers) as code with the free Pixel Studio engine. Use when the user wants a "pixel video", "pixel animation", "8-bit / 16-bit scene", or a reel in that style.
Jak działa
- The rules that make it look like real pixel art
- Scene skeleton
- Story beats that go viral
- Workflow
Podgląd SKILL.md
---
name: pixel-studio
description: Make retro pixel-art animation videos (collapsing landmarks, little characters, sci-fi labs, explainers) as code with the free Pixel Studio engine. Use when the user wants a "pixel video", "pixel animation", "8-bit / 16-bit scene", or a reel in that style.
---
# Pixel Studio
Every scene is one JS file in `scenes/` that calls `PX.scene({...})`, plus a `<script>` tag for it in `studio.html` and `index.html` (the gallery). The engine is `src/pixel.js` and has no dependencies. Open `index.html` through any static server (for example `python3 -m http.server`).
## The rules that make it look like real pixel art
1. **Resolution.** Use 256×320 (4:5 card, the default) or 180×320 (9:16 reel). Use 128×160 for a chunkier, more retro look. The HUD and titles scale automatically.
2. **Palette indices only.** Never draw with hex colours. Slots 0–7 are the main ramp (0 darkest, 7 white) and slots 8–11 are an accent ramp (dark to bright). Shade light-to-dark across a form. Save the accent for the hero or the key prop. This is what makes palette swaps work.
3. **Whole pixels only.** Use `b.px`, `b.rect`, `b.line`, `b.circle`, `b.blit` and `b.blitRot` (nearest-neighbour). Never use canvas paths, gradients or `ctx.rotate`. They anti-alias and break the look.
4. **Transparency means dithering.** For smoke, glow, fades and shadows, use `b.dither` or `b.ditherCircle` with an amount from 0 to 1. Never use alpha.
5. **Step time at 12 fps** (`fps: 12`). Camera shake and flash are done in `fx` and are fine.
6. **Determinism.** `draw(b, t, state)` must be a pure function of `t`. Use `PX.rng(seed)` for randomness and never `Math.random()`. Precompute physics in `setup()` into arrays indexed by time (see `scenes/pisa.js`).
7. **Fidelity comes from five tools:**
- `b.ball(cx, cy, rx, ry, ramp)` for rounded, lit forms (heads, bodies, smoke).
- `b.cyl(x, y, w, h, ramp)` for columns, limbs and trunks.
- `b.poly(points, c)` and `b.ellipse` for shapes.
- `sprite.outline(0)` for a 1px dark outline, so characters pop. Draw the character into its own `new PX.Buf(w, h)`, outline it, then `blit` or `blitRot` it.
- Seeded noise one shade apart, so big areas are never flat.
Give eyes a 1px white highlight. Make the hero the highest-contrast thing on screen.
8. **Sound on every event.** List them in `events: [{ t, sfx }]`, or return them from `setup()`. The built-in sounds are tick, blip, flip, crack, thud, boom and rumble. They are synthesised, so no audio files are needed.
## Scene skeleton
```js
PX.scene({
name: 'My Scene', w: 256, h: 320, fps: 12, duration: 6, palette: 'teal',
setup() { return { events: [{ t: 1, sfx: 'tick' }] }; },
draw(b, t, S) {
b.clear(0);
b.rect(0, 276, 256, 44, 2); // ground
b.ball(128, 240, 20, 24, [2, 3, 4, 5, 6]); // a lit body
PX.title(b, ['HELLO'], t, 1); // typewriter title
return { flash: 0, shakeX: 0, shakeY: 0 }; // optional post FX
},
});
```
## Story beats that go viral
Use this order: a HUD with a ticking number (tension), an escalating small change, a sudden break (flip the HUD colours, flash, shake, glitch rows with `b.rowShift`), debris and dust, then a title typed in letter by letter. Keep it to 6–8 seconds and make it loop cleanly by ending with a dithered fade to 0.
## Workflow
1. Write the scene file and add its `<script>` tag.
2. Check key moments headlessly with `node tools/render.mjs scenes/x.js 0.5 2.5 4 --scale 2 --out /tmp/x`, then look at the PNGs and fix whatever reads badly. In the browser, `studio.html?t=2.5&palette=ember` freezes on a moment.
3. Export a frame-exact silent MP4 with `node tools/render.mjs scenes/x.js --mp4 out/x.mp4` (needs ffmpeg). For a version with sound, use the **Record video** button in the studio (WebM).
Wersje
W bazie nie ma innych skilli o nazwie pixel-studio.
Migawka bazy z 13.11.2026 · wersja paczki a9f415e7c0bc (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 1008-bit-pixel-art-patterns
Tworzy pikselowe ramki, cienie i efekty dla komponentów interfejsu w stylu retro 8-bit. - 87pixel-art-studio
Tworzy grafikę pikselową i animacje programowo: sprite'y, arkusze sprite'ów, pikselowanie obrazów i postaci w stylu retro. - 1008-bit-orbit-video-template
Tworzy wieloscenowe kompozycje wideo w stylu retro pixel na podstawie HTML, z rozbudowanymi przejściami i interaktywnym podglądem. - 95pixel-blocks-motion
Tworzy animacje pixel art w stylu Pixel Blocks na siatce 320×180 i renderuje je przez ffmpeg, bez przeglądarki i npm. - 100animation-performance-retro
Optymalizuje animacje w stylu 8-bit pod kątem płynności w pikselartowych animacjach, efektach interfejsu gier i innych retro animacjach. - 100animaguru-pixel-art-animation
Tworzy animacje z ostrych grafik pixel art, ograniczonych palet, timingu sprite'ów i scen z kafelków.