Insect Empire – A browser survivor-like built with AI art and AI coding

2 pointsposted 9 hours ago
by Nate007

2 Comments

Nate007

9 hours ago

I built a Vampire Survivors-style browser game as an experiment in AI-generated art and conversational AI coding.

Play: https://www.myvibe.so/nategu/insect-empire

Previous version: https://www.myvibe.so/nategu/bullet-garden

This is a sequel to Bullet Garden, which was an 85KB single HTML file using only procedural Canvas geometry (triangles for enemies, circles for bullets, no image assets, no build system).

For this version I changed the constraint:

Use Vite + Phaser 3 (multi-file project)

Generate all 30+ sprite sheets with Gemini

Generate 4 biome backgrounds (3-layer parallax)

Keep performance at 60fps on mobile

Still no audio files (Web Audio API synthesized SFX)

The most interesting technical challenge wasn’t performance — it was visual consistency.

All sprites had to share:

bright cartoon palette

white outline

top-down bug perspective

Getting 30+ assets stylistically aligned required iterative prompt tuning and sometimes compositing multiple generations.

On the code side, everything was written through conversational AI coding (Claude Code). The architecture grew from a single 85KB file into a structured Phaser project with spatial hash collision detection and asset pipelines.

Gameplay-wise it’s a small survivor-like:

3 characters

7 weapons (with evolutions)

3-phase boss

~120 enemies on screen at once

Runs on desktop and mobile browsers (touch joystick or WASD). Weapons auto-attack; you focus on positioning and upgrades.

Main goal: explore how far AI-generated assets + AI-assisted coding can push a browser game without a traditional art or engineering pipeline.

anwar_nairi

8 hours ago

Man congrats I had a big fun playing... You should definitely add a service worker and a manifest file so we can all add this game to our home screen. The gameplay is very cool, great to see what the web can do today!