pixel-plays README

The project's README from github.com/amirmushichge/pixel-plays. As one markdown file: README.md.

Pixel Plays

Small browser games shown as isometric pixel dioramas. Every game is one page of plain JavaScript with its own software rasteriser: no build step, no dependencies, no sprites or image assets.

Play: https://pixel-plays-ruby.vercel.app/

Concept by abhi. Game by AmirMushich. Visual reference for the style: shawn.'s Small plays; no assets or subjects were copied.

Games

Game What you do Input
Balote Bocce against a bot, first to 5 Drag back and release; arrows + space
Stari Most Five dives off the old bridge, flip and enter the water vertically Hold and release
Rooftop Laundry Get the washing into the basket before the storm Drag; space
Tie-Break Clay-court tie-break against a bot, the moment you hit decides where the ball lands Tap; space
Mini Ramp 60 seconds on a skateboard ramp, pump for height and grab in the air Hold and release; space

Run

Requires Node.js; nothing to install.

node serve.mjs

Then open http://127.0.0.1:5300/. Any static file server works, and the site deploys as plain static files.

Add a game

Create <id>/index.html, load ../shell.js, call PixelPlays.mount({ id, rules }), set window.PP_SCENE, load ../engine.js, then add the game to GAMES in shell.js. The page needs a #mute button. Put its background track at <id>/<id>.mp3.

Visual rules

License

The code is under the MIT License. The music is not: see MUSIC.md.

pixel-plays (amirmushichge/pixel-plays)

2d
Searching Database…

What is this?A collection of small browser games presented as isometric pixel dioramas; each game is a single HTML page with no build step and no dependencies, using its own tiny software rasteriser instead of sprites or images.
Is this a game engine or a set of finished games?It is a set of five finished playable games (Balote, Stari Most, Rooftop Laundry, Tie-Break, Mini Ramp); shell.js and engine.js are shared helpers for the menu, music and rendering, not a general-purpose engine meant to be imported elsewhere.
How do I run it?Clone the repo and serve the folder with any static file server; open the served URL in a browser since the whole site is just plain static files.
Do I need a build tool or any libraries to use it?No build tool or libraries are needed: there is no build step, no npm dependencies, and no sprite or image assets — each game draws itself with its own software rasteriser.
Is the background music free to reuse?No — only the code is MIT licensed; the music has its own separate terms documented in MUSIC.md.
How many games are included and what do I do in each?Five games ship today: Balote (bocce against a bot, first to 5), Stari Most (five cliff dives with a vertical entry), Rooftop Laundry (drag laundry into the basket before a storm), Tie-Break (tap-timed tennis tie-break), and Mini Ramp (60 seconds of skateboard tricks).
How do I add a new game to the project?Create an index.html that loads shell.js and engine.js, call PixelPlays.mount with an id and rules, set window.PPSCENE, supply groundColor/bake/update/draw functions, add a #mute button and a background track, then register the game in the GAMES list in shell.js.
What gives the games their distinctive pixel-diorama look?A real-time software rasteriser with a depth buffer, four shade levels and Bayer dithering, a fixed 30-degree orthographic camera, long hard shadows falling screen-right, and hue-shifted colour ramps (violet shadows, warm-yellow lights) on a low-resolution 360x280 canvas.
Size
11.7 MB
Stars
593
Updated
CommitOct 31
Age
1mo
Commits · 90 Days