I will explore the existing project files to understand its structure before building our nature tracking game.
I will check the existing package.json to see what libraries (like lucide-react, canvas-confetti, framer-motion, etc.) are available or if we need to install any.
I will install lucide-react and canvas-confetti (and types) for UI icons and celebratory effects when players discover elusive wildlife and reach new tracker ranks.
I will inspect index.html and update it with a nature-inspired title, proper mobile viewport meta tags, and clean Google Fonts for a rustic naturalist theme.
I will update index.html to set the game title ("Jeux de suivi dans la nature - L'Odyssée Sauvage") and import stylish naturalist fonts.
I will check src/index.css to ensure styling rules and Tailwind CSS directives are properly configured.
I will update src/index.css to add custom utility animations, font shortcuts, and touch control safeguards.
I will create src/types/game.ts to define the core data models for animals, biomes, player state, tracking trails, and game settings.
I will create src/utils/sound.ts to implement procedural sound effects and ambient nature audio using the Web Audio API.
I will remove the unused noiseNode property in src/utils/sound.ts.
I will create src/data/biomes.ts with definitions for the 4 wildlife biomes, color palettes, ambient elements, and difficulty levels.
I will create src/data/animals.ts defining 16 animal species with rich facts, rarity grades, and tracking clues.
I will create src/utils/storage.ts to manage local storage persistence for high scores, unlocked field guide entries, and game preferences.
I will create src/utils/canvasDrawings.ts containing custom vector drawing methods for animal silhouettes, trees, footprints, bushes, and photo frames.
I will create src/components/HUD.tsx to display real-time expedition stats, combo multiplier flame, remaining daylight timer, and powerup readiness.
I will create src/components/VirtualControls.tsx implementing smooth touch joystick movement and action buttons for touch screens.
I will create src/components/StartScreen.tsx with biome selectors, game mode toggles, and quick navigation to the interactive field guide.
I will create src/components/FieldGuide.tsx to serve as the player's interactive naturalist album and field manual.
I will create src/components/LeaderboardModal.tsx to display local high scores, top tracking records, and provide clear/filter options.
I will create src/components/GameOverModal.tsx showing expedition summary stats, new unlocks, high-score registration, and instant restart action.
I will create src/components/SettingsModal.tsx and src/components/TutorialModal.tsx to let players adjust audio/visual settings and review the tracking guide.
I will create src/components/TutorialModal.tsx detailing the 10-second fun tracking loop and wildlife observation rules.
I will create src/components/CanvasGame.tsx implementing our 60fps HTML5 Canvas game engine with trail physics, animal encounters, photo capture mechanics, particles, and screen shake.
I will inspect line 420-430 in src/components/CanvasGame.tsx to fix the currentTerrain type condition.
I will check lines 380 to 410 of src/components/CanvasGame.tsx to inspect currentTerrain.
I will update the terrain detection loop in src/components/CanvasGame.tsx using a standard for...of loop so TypeScript cleanly tracks the variable mutation.
I will replace src/App.tsx with the master game controller coordinating state transitions, audio synthesis, keyboard shortcuts, HUD overlays, and modal dialogues.
I will run build_project to test that all TypeScript modules compile and bundle cleanly.
I have created Jeux de Suivi dans la Nature : L'Odyssée Sauvage, a polished 60 FPS browser game optimized for both desktop and touch devices.
🌟 Core Gameplay & 10-Second Loop
- Instant Fun & Discovery: Within seconds of launching an expedition, glowing footprint trails lead you through the wilderness. Stepping on each trail node builds your Combo Multiplier (
x1 to x15) with ascending pitch chimes.
- The Photo Encounter: When you reach the end of a trail, a rustling bush reveals a wild animal! Align your focus ring and hit ESPACE (or tap the PHOTO button) for an instant freeze-frame flash, screen shake, celebratory confetti, and score bonus (
MAGNIFIQUE!).
- Tactical Sneaking & Power-ups: Hold Shift (or tap Discret) to move silently across crunchy leaves without spooking shy deer or owls. Activate your Jumelles Thermiques (Q or Vision) to highlight all hidden tracks.
🎮 Modes & Biomes
- 3 Modes de Jeu :
- Expédition Chrono (90s) : Course contre la montre où chaque photo réussie ajoute du temps bonus (+5s à +8s).
- Survie Pisteuse (3 Vies) : Faune farouche où courir bruyamment fait fuir les animaux et perdre des vies.
- Exploration Zen : Sans minuterie, détendez-vous au son de la nature et enrichissez votre album.
- 4 Biomes Sauvages : Forêt Émeraude, Vallée des Loups, Marais Mystique, et Sommet Boréal.
📱 Contrôles & Audio
- Clavier : Z/Q/S/D ou Flèches pour bouger, Shift pour marcher à pas de loup, Espace pour observer/photographier, P ou Échap pour la pause, R pour recommencer instantanément.
- Tactile / Mobile : Joystick virtuel fluide en bas à gauche et boutons d'action tactiles en bas à droite.
- Synthèse Audio Web Audio API : Sons de pas procéduraux selon le terrain (herbe, boue, feuilles, eau), clics d'appareil photo et fanfares triomphales.
🏆 Progression & Classement
- Le Carnet du Naturaliste : 16 espèces répertoriées avec étoiles de qualité (1 à 3 étoiles), records personnels, indices de piste et anecdotes naturalistes réelles.
- Tableau d'Honneur Local : Enregistrement de vos records et statistiques par mode de jeu dans le stockage local du navigateur.
Files built: index.html, src/index.css, src/types/game.ts, src/utils/sound.ts, src/data/biomes.ts, src/data/animals.ts, src/utils/storage.ts, src/utils/canvasDrawings.ts, src/components/HUD.tsx, src/components/VirtualControls.tsx, src/components/StartScreen.tsx, src/components/FieldGuide.tsx, src/components/LeaderboardModal.tsx, src/components/GameOverModal.tsx, src/components/SettingsModal.tsx, src/components/TutorialModal.tsx, src/components/CanvasGame.tsx, src/App.tsx