Creative coding · Pixel art · Web · Experiments
This room
A pixel-art portfolio inspired by the computers and games I grew up with.
- Year
- 2026
- Role
- Creator: concept, art direction, and engineering with AI assistance
- Stack
- Next.js, React, Web Audio
- Art
- 480×270, 29 colours
- Length
- 4 min read
Problem
I wanted somewhere to keep my projects and writing, and I wanted to enjoy building it.
I’ve always liked the feeling of exploring a game, clicking on random objects and finding things hidden inside them. A portfolio is usually a grid of cards. I wanted one that felt like a place: a desk at night, a CRT still on, rain on the window.
A pixel room is easy to make charming and hard to make usable. Someone hiring needs to reach the work in one click, on a phone, with a keyboard, with the sound off. The room had to be an extra way in, never the only way.
Constraints
No dependency without a reason: the site runs on Next.js, React and nothing else. Every section has its own URL. Everything works with JavaScript off. The palette starts from seven colours. Sound can always be switched off.
My part
I came up with the concept, planned the experience, directed the visual design, and built it with an AI coding assistant. The room is an ongoing personal project.
Where the art lives
The room is one Aseprite file: 480×270, seventeen layers, a twelve-frame loop and a palette of 29 colours. Named slices mark the click targets and the regions that animate. The build reads that file directly and writes the images the page uses, so Aseprite is only needed for drawing.
The first version of every layer was typed, not drawn. A script stored a material and a brightness for each pixel, let three light sources (lamp, monitor, window) raise the brightness, and picked colours from each material’s ramp with a narrow dither. That gave consistent lighting to start from. The file is laid out so that each layer can be redrawn by hand, one at a time, without touching code.
The drawing: 480×270, a layer for every object, twelve frames, and a named slice round anything the page has to find.
Click targets that cannot drift
The click targets are slices in the same file as the art, and the hover outlines are a hidden layer in it. Move the telephone in Aseprite, move its slice with it, and the page follows on the next build.
Each object is a plain link. Click one and the screen dissolves into big pixels spreading out from it, a one-line loader shows (the computer boots, the disk is read, the telephone dials), and the page dissolves back in. Without JavaScript it is still a link.
"contact": { "x": 327, "y": 110, "w": 45, "h": 19 }Filling the screen
The room fills the window, but only at whole numbers of screen pixels per art pixel, so nothing shimmers. Whatever the art does not cover is filled by carrying the room on. The wall’s edge column repeats sideways. The floor is a tile whose planks wrap, so it continues in every direction without a seam.
On a phone held upright the room is wider than the screen. It starts centred on the desk and you drag to look around.
Art pixels cannot all be 3.3 wide, so some come out 3 and others 4. Compare the edges of the sword.
Trade-offs
Typed sprites are consistent but stiff. Furniture comes out well; anything organic wants a hand, which is why the source is now a file an artist can open.
The print above the lamp uses fixed colours. At 42×32 pixels the room’s light map dithered it into mud, so it is the one object the lamp does not light.
There is no navigation bar. Every page has one way out, back to the room, so moving between sections costs an extra click. In return nothing sits on top of the room.
Sound is on by default, which browsers only permit after a first click or key press. The radio on the shelf switches it off, and so does the M key.
Animation is six small sprite strips (rain, steam, a text cursor, the sleeper’s z’s, notes from the radio, the cat’s tail) cut from the twelve frames and stepped by CSS, plus one more for the cat when it is petted. Rocky has nine strips of his own, one per pose. A script walks him in from off-screen, has him wave, meet the cat and settle on the bed, and now and then sends him to the desk to tinker; every step lands on a whole art pixel. Click him and he stops to say “Amaze!” and holds out a fist to bump. They all stop when the system asks for reduced motion.
Lessons
I underestimated how many little details go into making a room feel alive. The sound, the way objects answer when you touch them, and how the transitions feel all add up.
I’ve enjoyed working on something where I can take my time over those details.
Credits
Concept, planning and art direction by Rahman, built with an AI coding agent. The print is fan art of Guts, from Kentaro Miura’s Berserk, and the visitor on five legs is fan art of Rocky, from Andy Weir’s Project Hail Mary. The social preview features Grace and Rocky from the same book, with its own Aseprite source.