I'll build a medieval Europe map strategy game called "Crown & Conquer" with real-time territory control, AI opponents, particle effects, screen shake, and polished UI. Let me start by examining the project structure.
Now I have a clear picture of the project setup. Let me build a medieval Europe map strategy game called "Crown & Conquer" — a real-time territory control game with AI opponents, particle effects, screen shake, and polished medieval visuals.
I'll start by creating the game files.
Now let me create the main game file — this will be the complete implementation with all game logic, rendering, and UI components:
Now let me build the project to verify it compiles correctly:
The build succeeded. Let me review the game and add a few polish improvements — I want to make the start screen more engaging with an animated background, improve some visual feedback, and add a small notification system for AI actions.
Let me check the rest of the code for any issues:
The game builds and runs well. Let me enhance it with some key improvements: an animated start screen with map preview, an event notification system for AI actions, better HUD with time tracking, and more polished game-over stats.
Now let me build to verify everything compiles:
The build succeeds. Let me verify the complete game is working properly by checking the final output:
The game builds successfully! Here's a summary of what I built:
Crown & Conquer — Medieval Map Strategy Game
Core Gameplay
- 21 territories forming a map of Medieval Europe (Ireland to Byzantium, Norway to Morocco)
- 4 factions: Your Kingdom (blue), House Scarlet (red), House Verdant (green), House Aurelian (gold) + neutral territories
- Real-time strategy: Select your territory → tap adjacent enemy to attack. Troops auto-generate every 2.5s
- AI opponents: 3 AI factions that compete against each other and you, attacking every 2 seconds
- Risk-style combat: Attack power with luck factor — overwhelming force usually wins, but upsets happen
Juice & Feedback
- Screen shake with quadratic decay on conquests and major events
- Particle bursts (30+ particles) on conquests with faction-colored glow
- Attack animations: Swirling cluster of soldiers traveling from attacker to defender with trailing effects
- Territory flash effects on attacks (gold glow for conquest, red for repelled)
- Pulsing selection ring with golden glow on selected territory
- Dashed attackable indicators showing valid targets
- Floating score popups (+200 on conquest, "Repelled!" on defense)
- Ambient ember particles drifting across the map
- Inner highlight gradients on territories for 3D sphere look
Screens & States
- Start screen: Animated map background, golden shimmer title, how-to-play guide, high scores
- HUD: Score, time elapsed, faction territory bar with percentages, lands/army count, pause button
- Event log: Bottom-of-screen notifications for AI conquests and faction eliminations
- Pause screen: Resume/restart with keyboard shortcut hints
- Game over: Victory 👑/Defeat 💀 with detailed stats (time, conquered, defended), high scores
Controls & Performance
- Touch: Tap to select/attack with enlarged 46px hit targets, pinch/scroll disabled
- Mouse: Click to select/attack
- Keyboard: Space/P = pause, Esc = pause, R/Enter = restart on game over
- 60fps canvas rendering with efficient game loop and throttled React updates
- High scores: Persisted in localStorage, top 10 displayed
Files built: index.html, src/index.css, src/App.tsx