I'll create an epic Brotato-inspired roguelite survival game. Let me start by exploring the project structure and then build this comprehensive game.
Now let me build this game. I'll create a comprehensive roguelite survival game with all the requested systems. Let me start with the core game files:
Now let me create the game engine and all systems. I'll organize the code into multiple files:
Let me fix the unused imports and variable warnings:
Now let me create the renderer:
Now let's create the main App component with all UI screens:
Let me check for any type errors:
The project builds successfully. Now let me test it and improve it. Let me check the current state more carefully and add some missing features and polish:
The game is working. Let me enhance the visual experience, add the arena boundary visual improvement, and refine some gameplay aspects. Let me make the index.css file proper:
Now let me significantly improve the renderer to add more visual polish, better effects, and make the game more visually impressive:
Now let me enhance the App.tsx with better UI animations and polish:
Build successful. Now let me review the engine for gameplay issues and improve a few key areas:
- Fix the enemy spawning/wave balance
- Ensure better camera initialization
- Add more polish to the combat feel
I need to also set the camera position to the player's starting position when the game starts. Let me fix that:
Now let me also give starting money to make the first shop visit useful:
Let me also review the wave completion logic to make sure it works properly. The issue is that wave completion requires all enemies to be dead, but we also need the wave timer. Let me check:
Now let me look at the wave completion logic more closely to ensure it's robust:
The wave completion logic looks good. Let me also check how the range stats work for melee weapons to make sure melee characters work well:
Good - the findNearestEnemy uses range * stats.range so melee weapons will look for nearby enemies correctly. Let me also make a tweak to the melee range detection to be more generous:
Now let me build and verify:
The game builds successfully. Let me make a few more improvements to polish the gameplay experience - I want to make sure the damage numbers and combat effects are particularly satisfying, and add a wave announcement:
Let me now add a wave announcement system and ensure money generation is adequate. Also need to improve the starting experience. Let me add a brief initial invincibility and also display a wave start announcement particle:
Now let me also improve the wave completion rewards to ensure the player can buy things:
Let me also clean up the exp orbs to make sure they don't accumulate infinitely. And let me add a "magnetize all" when leveling up:
Now let me look at the gainExp function to add magnetize-all on level up:
Now let me build and verify again:
Build successful. Let me now review a few more things to ensure the game is polished and fun. Let me check if the ranged enemy is correctly implemented and add a wave start delay:
Let me add a small initial delay before spawning:
Let me also make a small quality of life improvement - showing wave start text on the HUD. I'll add this to the renderer:
Let me look at the HUD function to add the wave start announcement:
Let me check the end of the HUD function and add a wave start announcement:
Let me add a wave start announcement in the center of the screen:
Excellent! The game builds perfectly. Let me do one more pass to verify the overall quality and make some final tweaks. Let me also make sure player movement during the shop/levelup phases continues to render properly:
The game is looking good. Let me do a final review of the full types and data to make sure everything is complete:
Everything looks complete. Let me do a final build to confirm:
The game builds successfully. Let me provide a summary of everything that was built:
🎮 Nova Survivors - Roguelite Arena Game
A comprehensive Brotato-inspired roguelite survival game built with React, Canvas, and TypeScript. Here's what was created:
Architecture
src/game/types.ts — All type definitions (80+ interfaces/types for enemies, weapons, particles, etc.)
src/game/data.ts — Game data: 6 characters, 18 weapons, 26 items, upgrade generation, shop system
src/game/engine.ts — Full game engine (~1530 lines): physics, combat, AI, wave management, progression
src/game/renderer.ts — Canvas renderer (~1130 lines): detailed sprites, particles, effects, HUD
src/App.tsx — React UI: menu, character select, level up, shop, game over, victory screens
Features Implemented
🎯 6 Playable Characters with distinct playstyles:
- Soldado (balanced), Guardião (tank), Assassina (crit/speed), Engenheiro (extra projectiles), Berserker (melee power), Arcana (magic/pierce)
⚔️ 18 Weapons across melee, ranged, and special types:
- Pistol, SMG, Shotgun, Sniper, Minigun, Rockets, Plasma, Laser, Nova, Cryo Blaster
- Dagger, Sword, Axe, Hammer, Scythe
- Arcane Staff (homing), Lightning Orb (chain), Black Hole (vortex)
🛡️ 26 Items across 5 rarity tiers (Common → Legendary)
👹 9 Enemy Types: Normal, Fast, Tank, Ranged, Swarm, Exploder, + 3 Boss variants
🏪 Complete Shop System between waves with weapons and items
📈 Level-up System with randomized stat upgrades weighted by luck
💥 Visual Polish: Particle effects, screen shake, damage numbers, combo counter, vignette, glowing projectiles, enemy-specific body shapes, boss crowns/abilities, wave announcements
🎮 Controls: WASD/Arrows movement, SPACE dash, auto-targeting weapons
15 Waves with escalating difficulty, boss waves every 5th wave, and a final boss at wave 15
Files built: index.html, src/game/types.ts, src/game/data.ts, src/game/engine.ts, src/game/renderer.ts, src/App.tsx, src/index.css