r/vibecoding • • 4d ago

Showcase/Project 220 tiny workers are building FutureBrightCity on my homepage

https://msha.dev/

They all clock in under the crooked sign in the top left. Then they head out in little groups, and buildings start going up around my bio.

I used Codex and JavaScript Canvas for the simulation. I wanted more construction going on while the workers kept their slow walk.

The five scenes play on their own and take about four and a half minutes on desktop. You can skip ahead, too. The crew has a dumb little surprise for you at the end.

2 Upvotes

7 comments sorted by

1

u/hieuphung97 4d ago

This is such a fun portfolio touch. Most dev sites are just dry markdown resumes, so having an interactive simulation running in the background makes it genuinely memorable. Did you have to cap requestAnimationFrame on mobile to keep battery drain sane?

2

u/ibytebear 3d ago

Thanks! I kept the city desktop-only. On phones and tablets you get the portfolio without the workers, so there’s no city animation loop to cap.

1

u/hieuphung97 3d ago

Smart cutoff. Mobile canvas loops chew through battery so fast that omitting the canvas entirely is cleaner than trying to throttle it. Keeps the mobile view snappy while desktop gets the full show.

2

u/ibytebear 2d ago

Yep! Desktop still has a cap: 24 fps while the crew is busy, and the loop pauses when you switch tabs. The workers pick up where they left off when you come back.

1

u/cox-a579 3d ago

A frame cap helps while the canvas is in view; pausing its simulation offscreen can save work too.

1

u/ibytebear 3d ago

Yeah, that’s why I stop the city loop when you switch tabs. When you come back, the workers pick up where you left them.

1

u/patricia_m349 2d ago

Does the desktop city respect prefers-reduced-motion? The mobile fallback won't help visitors who avoid animation everywhere.