I will explore the project structure to understand existing files and setup.
I will check the dependencies in package.json to see what libraries are available.
I will install lucide-react and canvas-confetti for icons, UI polish, and victory celebration effects.
I will check index.html and src/index.css to set up pixel-art rendering styles and update the title.
I will check src/index.css to inspect existing Tailwind configuration or custom CSS rules.
I will update index.html with an epic game title ("VÉLDEGAARD: Souls of the Fallen - 2D Isometric Pixel RPG"), custom font links (like Press Start 2P or MedievalSharp from Google Fonts), and dark background theme.
I will update src/index.css to add custom font utilities, pixel art rendering rules (image-rendering: pixelated), glowing effects, and animations for Souls-like UI alerts ("YOU DIED", "BONFIRE LIT", "GREAT ENEMY FELLED").
I will create src/types/game.ts to define the TypeScript interfaces for stats, items, combat, enemies, bosses, isometric map tiles, bonfires, and character state.
I will create src/data/items.ts with Weapons, Armor Sets, Rings, Spells, Consumables, and 5 distinct Character Classes with Souls-like stat scaling and lore.
I will remove the unused Item import from src/data/items.ts.
I will create src/data/enemies.ts to define enemy templates and 4 multi-phase boss fights with telegraphed attacks and lore.
I will create src/data/maps.ts defining 4 interconnected isometric regions with tile layouts, bonfires, chests, shortcuts, NPCs (Firekeeper, Blacksmith, Merchant), enemy spawn points, and boss arenas.
I will create src/utils/sound.ts using the Web Audio API to procedurally generate retro 16-bit sound effects (sword slash, heavy hit, parry chime, bonfire ignition, estus gulp, spell cast, death bell toll, and gothic ambient music chords).
I will create src/components/canvas/IsometricCanvas.tsx to render the 2D isometric pixel art world with Z-depth sorting, procedural pixel sprite drawing, dynamic lighting, weapon swing trails, particles, and bloodstains.
I will update src/components/canvas/IsometricCanvas.tsx to use the character direction (dir) to flip the sprite horizontally when facing left, making directional movement visually responsive and removing the unused variable warning.
I will create src/components/hud/GameHUD.tsx for the top-left status bars (HP, Stamina, FP), Estus & Cerulean Flask quick-slot, Soul Counter, active Boss Health Bar, and interactive on-screen touch controls.
I will create src/components/modals/BonfireMenu.tsx to handle resting at bonfires, leveling up character stats with Souls, and fast-traveling between unlocked sanctuaries.
I will create src/components/modals/InventoryMenu.tsx to display character stats, equip weapons/armor/rings/spells, and inspect item lore.
I will remove the unused Sparkles import from src/components/modals/InventoryMenu.tsx.
I will create src/components/modals/BlacksmithMenu.tsx for weapon enhancements (+0 to +10) with Master Andre using Souls and Titanite Shards.
I will remove the unused AlertCircle import from src/components/modals/BlacksmithMenu.tsx.
I will create src/components/modals/MerchantMenu.tsx for Patches' merchant shop where players can purchase consumables, weapons, and rings.
I will remove the unused ShoppingBag import from src/components/modals/MerchantMenu.tsx.
I will create src/components/modals/DialogueBox.tsx for NPC conversations with character portraits and branching dialogue options.
I will create src/components/modals/ClassSelection.tsx to allow players to name their hero and select from 5 distinct Souls-like character classes.
I will remove the unused Sparkles import from src/components/modals/ClassSelection.tsx.
I will create src/components/modals/SoulsBanner.tsx for the full-screen cinematic alerts ("YOU DIED", "BONFIRE LIT", "GREAT ENEMY FELLED", "HEIR OF FIRE DESTROYED").
I will create src/components/modals/LoreGuideModal.tsx containing the game manual, combat tips (parrying, i-frames, stamina), world lore, and bestiary.
I will create src/hooks/useGameEngine.ts to manage the real-time game loop, movement, collision detection, enemy AI, combat math, parry timing, spell projectiles, status ailments, and game state persistence.
I will remove the unused imports and variables in src/hooks/useGameEngine.ts.
I will update src/hooks/useGameEngine.ts to use setProjectiles for casting Glintstone Sorceries and Pyromancy Fireball bolts, and use hitX/hitY for directional melee hitbox validation.
I will inspect the game loop interval in src/hooks/useGameEngine.ts to add projectile movement and collision detection.
I will locate the setInterval game loop in src/hooks/useGameEngine.ts.
I will check the end of the setInterval game loop in src/hooks/useGameEngine.ts to insert projectile physics and collision handling.
I will update src/hooks/useGameEngine.ts to process projectile movement, collision against enemies and walls, and spell damage.
I will update src/App.tsx to integrate the game engine, render the isometric canvas, HUD, dialogues, and modal menus (Bonfire, Blacksmith, Merchant, Inventory, Guide, Class Origin selector).
I will inspect src/main.tsx to check the import style for App.
I will update src/App.tsx to export App as default (matching src/main.tsx) and remove the unused setCurrentMap variable.
I will run build_project to test for any remaining TypeScript or Vite build errors.
I have created VÉLDEGAARD: Souls of the Fallen, a 2D pixel art isometric Souls-like RPG web application built with React, TypeScript, Tailwind CSS, and HTML5 Canvas.
🏰 What Was Built:
-
2D Pixel Art Isometric Canvas Engine (src/components/canvas/IsometricCanvas.tsx):
- Isometric Depth Sorting: True Z-depth sorting where characters and enemies walk smoothly in front of or behind 3D extruded stone walls, gates, and trees.
- Procedural Pixel Environments: Checker cobblestone halls, mossy forests, bubbling toxic green poison swamps, and glowing magma lava pools.
- Visual Juice & Particles: Weapon slash sweep trails, screen shake on heavy impacts, floating critical damage numbers (
-140, CRIT! 320), blood splatters, and glowing red bloodstains with floating soul particles where you last died.
-
Souls-Like Combat System (src/hooks/useGameEngine.ts):
- Real-Time Stamina & FP Management: Every attack, dodge roll, and shield block consumes stamina. Manage your stamina bar carefully to survive!
- Parrying & Riposte: Timing your shield block (
R key or right click) right before an enemy strike triggers a resounding metallic chime, staggering them instantly for a 2.5x critical Riposte attack!
- Dodge Rolling: Pressing Spacebar executes a roll in your facing direction, granting invulnerability (i-frames) to phase through enemy attacks.
- Estus & Cerulean Gourds: Drink from your Estus Flask (
F) to heal HP or Cerulean Flask (G) to restore FP/Mana for casting Glintstone Sorceries and Pyromancies.
- Bloodstain Soul Retrieval: Dying leaves all your accumulated Souls at a Bloodstain on the floor. Return to the spot to retrieve them—if you die again before reaching it, they are lost forever!
-
4 Interconnected Realms & Boss Fights (src/data/maps.ts, src/data/enemies.ts):
- Undead Parish & Castle Véldegaard: Skeleton knights and hollow archers leading to Sir Malakor, The Forgotten Sentinel.
- The Blighted Mistwood: Rabid hounds and swamp rot cultists leading to Xylia, The Rotting Broodmother.
- The Magma Forge & Abyssal Catacombs: Molten sentinels and flame gargoyles leading to Ignis, The Iron Smelter Demon.
- The Astral Throne: The cosmic void arena against Vélmor, The Eldritch Lord of Ash.
- : Bosses feature telegraphed red warning alerts () before heavy smash attacks, multi-segment health bars, and celebratory confetti upon defeat.
Files built: index.html, src/index.css, src/types/game.ts, src/data/items.ts, src/data/enemies.ts, src/data/maps.ts, src/utils/sound.ts, src/components/canvas/IsometricCanvas.tsx, src/components/hud/GameHUD.tsx, src/components/modals/BonfireMenu.tsx, src/components/modals/InventoryMenu.tsx, src/components/modals/BlacksmithMenu.tsx, src/components/modals/MerchantMenu.tsx, src/components/modals/DialogueBox.tsx, src/components/modals/ClassSelection.tsx, src/components/modals/SoulsBanner.tsx, src/components/modals/LoreGuideModal.tsx, src/hooks/useGameEngine.ts, src/App.tsx