Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Pixel Wind Garden: Pixel-Art Plants the Pointer Blows Apart Like Wind

Build a hero where pixel-art plants are drawn as a field of square pixels and the pointer is the wind: pixels near a moving pointer blow away along its path and tumble, a click is a gust, and after a short calm every pixel drifts back to its place. Buttons switch the pixel size and the wind strength. SandBase draws the plants as one sprite sheet that the Skill cuts apart, or you bring your own transparent PNGs. Canvas 2D only. The hero is followed by a full landing page: chapter titles, an intro, a product console drawn in HTML, feature cards, specs, stats, a quote, a call to action and a footer, with a moving glow and a floating section pill.

Ví dụ · 2

Desert farming game hero with pixel-art plants the pointer blows apart
Mở trong tab mới

Chạy trong khung được sandbox hóa, không có quyền truy cập vào trang này.

Chạy trực tuyến

Chạy trong sandbox của SandBase và xem kết quả trong Lab.

Mở trong Lab ↗

Bạn nhận được gì

Bring the plants (or your own transparent PNGs), a headline, a line of copy, a button, links, palette, pixel size, wind strength and language. The Skill returns a full landing page (index.html), a section to paste into an existing site, the runtime script and stylesheet, the cut-out plants and the bundled open fonts.

Cách hoạt động

  1. 01

    Pick plants and wind

    Pixel Wind Garden asks for the plants or the user's own transparent PNGs, plus brand, headline, copy, links, button, palette, pixel size, wind strength and language. site.json sets wind.cell to 6, 8 or 11 px, radius from 40 to 260 px, strength from 0.3 to 3 and calmMs from 300 to 6000. node scripts/sample.mjs pixel-oasis --site site.json --out preview builds a free preview.

  2. 02

    Generate or supply sprites

    After the user accepts the estimate, node scripts/generate.mjs --theme "<the plants, left to right>" --site site.json --out run, followed by --confirm-real, makes one sprite sheet on a flat key colour through SandBase and cuts it apart. Own pictures use build-web.mjs --plants <dir> with 1 to 6 plants. Node 18+, ffmpeg and ffprobe are required, with no npm dependencies.

  3. 03

    Sweep the garden and check

    node scripts/serve.mjs run/site serves the result: drag across the plants, click for a gust, try the pixel and wind buttons and wait for regrowth. Output includes index.html, section.html, pixel-wind.js, pixel-wind.css, landing.js, fonts and plants/. Release 0.1.0 displaced 75 percent of 1044 pixels in one sweep, saw every pixel return and passed a 390 px phone drag.

Câu hỏi thường gặp

What does Pixel Wind Garden build?

Pixel Wind Garden builds a hero where pixel-art plants such as palms, cacti, trees and ferns are a field of square pixels and the pointer is the wind. Pixels near a moving pointer blow along its path and tumble, a click is a gust, and after a calm every pixel drifts home. A full landing page follows the garden.

Does Pixel Wind Garden cost anything?

Only for new sprite sheets. Pixel Wind Garden generates plants with gpt-image-2 through the logged-in sandbase CLI or SANDBASE_API_KEY, billed to your SandBase account after the user accepts an estimate and passes --confirm-real; --budget-usd sets a spending cap. Samples, own PNGs and previews are free, and rates are at https://www.sandbase.ai/pricing.

Can I use my own plant art in Pixel Wind Garden?

Yes. Pixel Wind Garden builds from a folder of 1 to 6 transparent PNGs with --plants, or from your own sheet on a flat key colour, pure blue by default, with --sheet. Plants must not overlap horizontally, because touching plants are kept as one piece.

Does Pixel Wind Garden need WebGL?

No. Pixel Wind Garden draws with Canvas 2D. Each opaque cell becomes a particle with a home position that drifts with drag, light gravity and flutter, then springs back without wobbling. PixelWind.mount(el, options) returns inspect, gust and destroy.

How does Pixel Wind Garden behave on phones?

Pixel Wind Garden lets vertical touch swipes scroll the page, so the wind follows horizontal and diagonal finger moves. A 390 px phone viewport fitted without sideways overflow in the checks. With reduced motion the plants stop swaying, but the wind still works.

What samples ship with Pixel Wind Garden?

Pixel Wind Garden ships pixel-oasis, desert plants for a desert farming game page, and moss-hollow, forest plants for a woodland campsite page. Each came from one gpt-image-2 sprite sheet, and results/runs.json lists every paid call. Detail finer than one cell is lost by design.