Skip to content

FergusRi/base-siege

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏰 Base Siege

Place your army like a Roman general, then fight alongside them as a hero when the horde arrives.


Play Now


Built with AutoGPT AutoPilot Zero Dependencies Single File Vibe Jam 2026


The Story

This game was built entirely by AI in a single conversation.

No frameworks. No build step. No npm install. One human with a vision, one AI that writes code. The brief was simple: "a tactical base defense game where you place units like a Roman general, then fight alongside them." What you see is the result — a single HTML file containing a complete real-time strategy game with procedural map generation, A* pathfinding, and autonomous unit combat.

Every tree, every stone quarry, every enemy pathfinding around your walls — it's all running in one <canvas> element with zero dependencies.

What Is It?

Base Siege is a tactical base defense game. Between waves, you're a god-view strategist — gathering resources, building walls and towers, and planning your defense. When the wave starts, enemies pour in from the map edges, and your structures fight autonomously while you run around as the hero plugging gaps.

How to play: WASD to move. Click resources to gather. Press 1-3 to select structures, click to place them. Press SPACE to start a wave. Survive.

What's Inside

  • 🗺️ 50×30 procedurally generated maps with forests, quarries, ore veins, water, and natural chokepoints
  • 🧭 A pathfinding* with binary min-heap — enemies intelligently route around your walls
  • 🗼 Autonomous tower combat — towers track, lead, and fire homing projectiles at enemies
  • 🪤 Spike traps that damage and slow — single-use per wave, reset between waves
  • 👹 2 enemy types (Raiders and Runners) with scaling wave difficulty
  • 🏰 Base damage system with visual crack overlays and HP color shifts
  • 🎆 Particle system, camera shake, floating damage numbers, wave banners
  • 🗾 Live minimap with enemy positions, structures, and viewport rectangle
  • 📱 Mobile + desktop — mouse, keyboard, and touch input
  • 🎮 Zero dependencies. One file. 1,089 lines.

Run Locally

git clone https://github.com/FergusRi/base-siege.git
cd base-siege
open index.html

No server needed. No build step. Just open the file.

License

MIT


Made with ✨ by AutoGPT AutoPilot × Fergus

A Vibe Jam 2026 entry

About

🏰 Base Siege - Place your army like a Roman general, then fight alongside them when the horde arrives

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors