I will start by exploring the directory structure of the project to understand the layout and existing files.
I will read package.json to check what libraries and UI icons are installed in the project.
I will install lucide-react for game menu icons and HUD controls, and canvas-confetti for celebrations when breaking high scores or unlocking characters.
I will check index.html to update the document title to "Subway Pobre - O Maior Runner Raiz do Brasil" and make sure viewport settings prevent pull-to-refresh or mobile scroll interfering with swipe controls.
I will read src/index.css to inspect the global CSS configuration.
I will update index.html to set the game title to "Subway Pobre - O Maior Runner Raiz", import modern arcade-style fonts from Google Fonts ('Chakra Petch' and 'Outfit'), and lock viewport touch zooming to ensure ultra-smooth swipe controls on mobile screens.
I will update src/index.css to define utility classes for neon glows, custom text gradients, arcade font settings, and touch optimization rules.
I will create src/types/game.ts to define all TypeScript interfaces for characters (Fred, Cláudio, Moneyriador, Pobre), obstacle structures, particle graphics, audio settings, and game states.
I will create src/utils/characters.ts with definitions for the four required characters (Fred, Cláudio, Moneyriador, Pobre), including their ability triggers, cooldowns, visual color schemes, unlock prices, and default leaderboard rankings.
I will create src/utils/audio.ts to implement a Web Audio synthesizer for all sound effects (jump, slide, coin chime, shield powerup, barrier smash, impact thud, game over) and an energetic arcade soundtrack loop without needing external sound files.
I will create src/components/canvas/SubwayRunnerCanvas.tsx to implement the core 3D perspective running engine, character physics, procedural street obstacle spawning, juicy particle animations, and touch/keyboard controls.
I will create src/components/ui/GameHUD.tsx to render the in-game dashboard with live meters for distance, coins (with 7x badge for Moneyriador), remaining lives/corações for Pobre, active powerups, and Cláudio's cyber shield cooldown button.
I will create src/components/ui/StartScreen.tsx to display the game's title menu, feature spotlights for the selected character, sound control toggles, and navigation buttons.
I will edit StartScreen.tsx to clean up the unused import.
I will create src/components/ui/CharacterSelect.tsx to let players inspect all 4 required characters, review their specific abilities (like Cláudio's 7-second cyber shield or Pobre's 3 heart lives), unlock them with collected coins, or toggle a quick testing mode to unlock all characters instantly.
I will edit CharacterSelect.tsx to remove the unused CharacterConfig type import.
I will create src/components/ui/PauseScreen.tsx to display an overlay menu when the player pauses, featuring instant retry options, resume buttons, and volume control sliders.
I will create src/components/ui/GameOverScreen.tsx to provide an entertaining defeat summary with street humor quotes, score breakdowns, local leaderboard name registration, celebratory confetti for record scores, and instant retry triggers.
I will create src/components/ui/LeaderboardScreen.tsx to display the high-score leaderboard with medals, runner icons, distance scores, and reset tools.
I will create src/components/ui/HowToPlayScreen.tsx to provide an interactive visual tutorial on controls, obstacle dodging tactics, and specific character mechanics.
I will now update src/App.tsx to tie together the pseudo-3D Canvas runner engine, sound manager, character unlocks, coin economy, high score persistence, and all user interface screens.
I will now run build_project to test compilation and verify that there are no TypeScript or bundling errors.
I have built Subway Pobre, a polished, highly playable browser game inspired by Subway Surfers with an entertaining Brazilian street atmosphere. The project compiled cleanly without any errors.
🎮 Key Highlights & Features Included:
-
4 Characters & Unique Mechanics:
- 🏃💨 Fred: Personagem inicial (gratuito) sem habilidade especial. O trabalhador sobrevivente das pistas!
- 🛡️⚡ Cláudio: Ao apertar duas vezes na tela (ou tecla E / botão na tela), ganha Imortalidade e um Escudo por 7 segundos que despedaça qualquer obstáculo do caminho com partículas! (Cooldown: 30 segundos).
- 🤑💰 Moneyriador: 7x Multiplicador de Dinheiro. Cada moeda Pix coletada na corrida é multiplicada por 7 no saldo final!
- ❤️🔥🩹 Pobre: Começa com 3 Vidas (Corações), resistindo a até duas batidas violentas nas faixas antes do Game Over!
-
Core Loop & Ultra-Responsive Controls (60 FPS):
- 3-Lane Pseudo-3D Perspective Renderer: Developed in high-performance HTML5 Canvas with speed scaling, street perspective vanishing points, sunset skyscraper silhouettes, and moving kerbs.
- Touch Controls: Swipe Left/Right to change lanes, Swipe Up to jump, Swipe Down to slide under hanging banners, and Double-Tap to unleash Cláudio's ability.
- Keyboard Controls: Arrow keys, A/D/W/S, Space for jump, Key
E or Q for special shield activation.
- Obstacle Variety: Dodge Ônibus Fretados & Trens da CPTM, jump over Caçambas de Entulho and running Vira-lata Caramelos, and slide underneath Varais de Roupa & Placas de Boteco ("Fiado só amanhã").
- Power-ups: Collect Imã de Moedas (Magnet 8s) and Turbo Cafézinho X2 Pontos (10s).
-
Juicy Feedback & Arcade Sound API:
- Web Audio API Synthesizer: Self-contained sound FX generator for jumps, slides, coin chimes, electric shields, collisions, and a lo-fi dynamic electro running soundtrack that shifts tempo as running speed accelerates.
- Particle Systems & Screen Shake: Dynamic camera shakes on impact, dust puffs under feet, gold sparkles when picking up Pix tokens, and flying neon debris when Cláudio shatters obstacles.
-
Game States & Extras:
- Start Screen & Economy: Interactive character carousel with unlock prices (plus a "Modo Patrão" testing button to test all 4 characters instantly without grinding).
Files built: index.html, src/index.css, src/types/game.ts, src/utils/characters.ts, src/utils/audio.ts, src/components/canvas/SubwayRunnerCanvas.tsx, src/components/ui/GameHUD.tsx, src/components/ui/StartScreen.tsx, src/components/ui/CharacterSelect.tsx, src/components/ui/PauseScreen.tsx, src/components/ui/GameOverScreen.tsx, src/components/ui/LeaderboardScreen.tsx, src/components/ui/HowToPlayScreen.tsx, src/App.tsx