A real-time strategy game where you build and manage a village, expand your territory, and survive as long as possible. Manage resources, construct buildings, recruit units, and expand your influence across a hexagonal map.
Build and expand your village while managing resources. Avoid starvation by maintaining positive food production. The longer you survive, the higher your score!
- Start the game: Click on your village (the tile with a house icon in the center) to open the village panel
- Build your first building: Start with a Farm to increase food production
- Manage resources: Keep an eye on your resource production rates (hold Shift while hovering over resources)
- Expand your territory: Click on visible tiles adjacent to your owned tiles to claim them
- Upgrade tiles: Click on owned tiles to upgrade them and increase their production bonuses
The game features six types of resources:
- Food ๐ - Essential for survival. Each person consumes 1 food per minute. Base production: +5/min
- Wood ๐ชต - Used for construction and upgrades. Base production: +3/min
- Stone โ๏ธ - Required for advanced buildings and upgrades. Base production: +1/min
- Diamond ๐ - Rare resource for high-tier upgrades. Obtained from special tiles and buildings
- Technology ๐ฌ - Research points for advancement. Generated by libraries and military buildings
- Power โ๏ธ - Military strength. Required to claim new tiles and villages. Generated by military units
Build and upgrade buildings in your village to boost resource production:
- Farm ๐พ - Increases food production (+2/m per level)
- Lumbermill ๐ฒ - Increases wood production (+1.5/m per level)
- Quarry ๐จ - Increases stone production (+1/m per level)
- Mine ๐ - Increases diamond production (+0.5/m per level)
- Library ๐ - Increases technology production (+0.3/m per level)
- Home ๐ - Increases population limit (+5 per level)
- Barracks โ๏ธ - Train warriors and generate technology (+1/m per level)
- Archer Guild ๐น - Train archers and generate technology (+1/m per level)
- Mage Tower โจ - Train mages and generate technology (+1/m per level)
Recruit military units to generate power and technology:
- Warrior โ๏ธ - Generates 1 power and 1 research point
- Archer ๐น - Generates 3 power and 2 research points
- Mage โจ - Generates 5 power and 3 research points
Hire specialized masters to boost resource production by 2% per master:
- Master Farmer ๐พ - Boosts food production
- Master Lumberjack ๐ฒ - Boosts wood production
- Master Stonemason ๐จ - Boosts stone production
- Master Miner ๐ - Boosts diamond production
- Master Scholar ๐ - Boosts technology production
- Hexagonal Map: Explore and expand across a hexagonal grid
- Claim Tiles: Click on visible tiles adjacent to your territory to claim them
- Upgrade Tiles: Click on owned tiles to upgrade them (up to level 100)
- Claim Villages: Conquer AI villages to expand your influence (requires significant power)
- Tile Types: Different terrain types provide different resource bonuses
- ` (Backtick) - Toggle pause/play
- 1 - Set speed to 1x
- 2 - Set speed to 5x
- 3 - Set speed to 20x
- Click - Interact with tiles (claim, upgrade, open village panel)
- Drag - Pan the map
- Scroll - Zoom in/out (or use zoom controls)
- Time Display - Click to open dropdown menu with reset and test options
- Speed Controls - Adjust game speed (1x, 5x, 20x)
- Pause Button - Pause/resume the game
- Resource Display - Hover to see details, hold Shift for production breakdown
- Start with Farms: Food is critical - build farms early to avoid starvation
- Manage Population: Build homes to increase population limit, but remember each person consumes food
- Balance Production: Don't focus on just one resource - you'll need all of them
- Upgrade Strategically: Tile upgrades increase production bonuses significantly
- Build Military: Power is required to claim new tiles and villages
- Use Speed Controls: Speed up time when waiting for resources or building completion
- Watch Production Rates: Hold Shift over resources to see detailed production breakdown
- Plan Building Queue: You have limited building job slots - plan your construction carefully
The game ends when:
- Food reaches 0
- Food production is 0 or negative
- No farms are being built that could increase food production
Your final score is calculated based on:
- Village level
- Experience gained
- Building levels
- Units recruited
- Guild masters hired
- Resources spent
- Penalty: Game time (surviving longer reduces score)
Your game progress is automatically saved to browser localStorage every 10 seconds. Refresh the page to continue where you left off!
- Framework: Next.js 16.0.1 (App Router)
- Language: TypeScript 5
- UI Library: React 19.2.0
- Styling: Tailwind CSS 4
- UI Components: Radix UI (Dropdown Menu, Separator, Tabs, Tooltip)
- Icons: Lucide React
- State Management: React Context API
- Storage: Browser localStorage
โโโ app/
โ โโโ components/
โ โ โโโ TimeControl.tsx # Time control component
โ โโโ page.tsx # Main game page
โ โโโ layout.tsx # App layout
โโโ components/
โ โโโ game/
โ โ โโโ building-jobs-display.tsx
โ โ โโโ control-buttons.tsx
โ โ โโโ population-display.tsx
โ โ โโโ resource-config.tsx
โ โ โโโ resource-display.tsx
โ โ โโโ resource-list.tsx
โ โ โโโ tile-info-panel.tsx
โ โ โโโ time-display.tsx
โ โ โโโ types.ts
โ โโโ game-board/
โ โ โโโ GameBoard.tsx # Main game board component
โ โ โโโ HexMap.tsx # Hexagonal map renderer
โ โ โโโ HexTile.tsx # Individual tile component
โ โ โโโ types.ts # Map-related types
โ โ โโโ utils.ts # Map utilities and calculations
โ โ โโโ zoom-controls.tsx # Zoom controls
โ โโโ game-header.tsx # Main game state provider
โ โโโ village/
โ โ โโโ building-card.tsx
โ โ โโโ building-list.tsx
โ โ โโโ guild-masters-panel.tsx
โ โ โโโ recruitment-panel.tsx
โ โ โโโ types.ts # Game entity definitions
โ โ โโโ village-upgrade-panel.tsx
โ โโโ ui/ # Reusable UI components
โโโ lib/
โโโ utils.ts # Utility functions
- Centralized state via
TimeControlContextingame-header.tsx - Auto-save to localStorage every 10 seconds
- State persistence across page refreshes
- Game time advances based on speed multiplier (1x, 5x, 20x)
- Building timers use game time, accelerating with speed
- Real-time updates for UI responsiveness
- Queue-based building with limited job slots
- Building timers show remaining game time
- Buildings provide resource bonuses based on level
- Hexagonal coordinate system (q, r)
- Deterministic tile generation
- Tile visibility system (owned, visible, hidden)
- Tile upgrade system (levels 1-100)
- Base production from village
- Tile bonuses from owned tiles
- Building bonuses from constructed buildings
- Population consumption for food
- Speed multiplier affects all production
- Node.js 18+
- npm/pnpm/yarn
npm install
# or
pnpm installnpm run dev
# or
pnpm devOpen http://localhost:3000 to view the game.
npm run build
npm startnpm run lint- Modern browsers with ES6+ support
- localStorage support required for save functionality
- Recommended: Chrome, Firefox, Safari, Edge (latest versions)
Private project - All rights reserved