I will explore the files in the project to understand its current structure and dependencies.
I will read package.json to check existing dependencies and installed libraries.
I will install lucide-react, framer-motion, canvas-confetti, and @types/canvas-confetti for icons, UI animations, and victory particle effects.
I will read index.html to update the title and styling for our Dark Fantasy pixel RPG.
I will read src/index.css to inspect the Tailwind setup and custom styling.
I will update index.html with a custom title, favicon, and font styling suitable for a Dark Fantasy Pixel RPG.
I will now update src/index.css with font declarations, custom animations, and utility styles for the Dark Fantasy Gothic/Pixel theme.
I will create src/types/game.ts containing comprehensive data structures for combat, stats, items, enemies, biomes, and game state.
I will create src/utils/sound.ts to implement a Web Audio API synthesizer that generates retro 8-bit/16-bit dark fantasy sound effects and ambient dungeon synth background music.
I will fix the typo in the export name of src/utils/sound.ts.
I will create src/utils/pixelSprites.ts to procedurally render authentic 16x16 and 24x24 pixel art sprites directly onto the canvas, including the Knight, weapons, skeletons, ghouls, ghosts, bosses, bonfires, and dungeon torches.
I will create src/data/weapons.ts defining 4 distinct weapons (Greatsword, Sword & Shield, Dual Daggers, and Dark Scythe) with unique stats, reach, combat perks, and soul upgrade costs.
I will create src/data/relics.ts with 8 powerful artifacts that provide passive abilities such as lifesteal, movement boost, fire enchantment, and soul bonus.
I will create src/data/biomes.ts defining the 5 distinct dungeon zones/campaign levels with atmospheric lighting colors, enemy spawn tables, floor themes, and boss fight assignments.
I will create src/data/bestiary.ts containing the Bestiary lore entries, enemy stats, and tactical weakness advice.
I will create src/components/UI/HUD.tsx to display the Knight's health and mana bars, Estus Blood Flask count, Soul currency, active ability cooldowns, and current level.
I will clean up unused imports in src/components/UI/HUD.tsx and ensure all props are properly utilized.
I will update src/components/UI/HUD.tsx to display an interactive bonfire prompt button when the player stands near a resting bonfire.
I will create src/components/UI/BonfireMenu.tsx, the sanctuary where players rest to restore health, spend souls to level up stats, unlock and swap weapons, and equip relics.
I will clean up unused imports in src/components/UI/BonfireMenu.tsx.
I will create src/components/UI/BestiaryModal.tsx to provide a lore encyclopedia of undead monsters and bosses, featuring tactical tips and kill counters.
I will create src/components/UI/MainMenu.tsx as the main title screen featuring game mode selection, difficulty settings, sound controls, and a controls guide.
I will clean up the unused Skull import in src/components/UI/MainMenu.tsx.
I will create src/components/UI/GameOverModal.tsx, recreating the iconic "YOU DIED" Gothic death screen with run statistics and quick restart options.
I will create src/components/UI/VictoryModal.tsx to celebrate boss defeats and campaign completion with celebratory particle confetti, soul rewards, and progression options.
I will create src/components/UI/MobileControls.tsx to provide on-screen virtual joystick and action buttons for touchscreen players.
I will create src/components/GameCanvas.tsx containing the 60 FPS Canvas engine, AI combat behaviors, collision detection, procedural dungeon layout, lighting system, blood splatter persistence, and particle effects.
I will update src/components/GameCanvas.tsx to receive levelIndex and waveNumber as props from the master controller in App.tsx and clean up unused imports.
I will replace setWaveNumber with onWaveChange(waveNumber + 1) and clean up the React import in src/components/GameCanvas.tsx.
I will update the wave transition logic in src/components/GameCanvas.tsx to use onWaveChange.
I will now replace src/App.tsx with the master game controller that manages state transitions between the title menu, active gameplay, bonfire sanctuary, bestiary lore, death screen, and victory celebration.
I will now build the project using build_project to ensure there are no TypeScript or compilation errors.
Я создал полноценную ролевую игру с пиксельной графикой в стиле тёмного фентези — «ДУША ОТВЕРЖЕННОГО» (Soul of the Forsaken)!
🏰 Особенности и механики игры:
-
Аутентичная пиксельная графика и атмосфера Dark Fantasy:
- Процедурная генерация спрайтов: Рыцарь Гниющей Стали в 4 направлениях, анимации ходьбы, взмахов оружием, рывка с эффектом «призрачного следа» и мерцания при ударах.
- Монстры и нечисть:
- 💀 Скелет-Стражник: Быстрые воины с ржавыми мечами и щитами.
- 🧟 Чумной Вурдалак: Болотная нечисть, прыгающая из засады с ядовитыми когтями.
- 👻 Призрак Пустоты: Парящие колдуны, игнорирующие стены и стреляющие сгустками тьмы.
- 🕷️ Пещерный Арахнид: Охотники катакомб, нападающие стаями.
- 🧌 Гниющий Огр-Мясник: Элитные мини-боссы с огромными тесаками.
- 👑 3 Эпических Босса: Лорд Скелетов Моргат, Падший Инквизитор Азраил и Безымянный Дракон Бездны!
- Динамическое освещение: Тёмные подземелья озаряются факелами на стенах, светом костра, горящими глазами монстров и вспышками заклинаний.
- Система крови и частиц: При ударах и гибели врагов на полу подземелья остаются постоянные следы крови, а также летят искры, пепел и души!
-
Глубокая ролевая система (Souls-like RPG):
- Убежище у Костра (Bonfire Sanctuary): Отдыхайте у костра, чтобы полностью восстановить здоровье, ману и фляги с кровью (Эстус). Распределяйте собранные души отверженных по 4 характеристикам:
- 🏋️ Сила (Strength): Увеличивает физический урон в ближнем бою.
- ❤️ Живучесть (Vitality): Увеличивает максимальный запас здоровья и силу лечения фляг.
- ⚡ Ловкость (Dexterity): Повышает скорость атаки, шанс критического удара и скорость перезарядки рывка.
- 🔮 Магия Тьмы (Arcane): Увеличивает урон заклинаний, ману и вампиризм.
- Арсенал из 4 видов оружия:
- ⚔️ Двуручный Меч Пепла — сокрушительные удары по широкой дуге.
- 🛡️ Меч и Щит Паладина — блокирует до 65% урона и оглушает врагов.
- 🗡️ Парные Клинки Пустоты — молниеносная скорость атак и высокий шанс крита.
- 🔮 Коса Отверженной Души — поглощает жизненную силу (12% вампиризма) с каждым ударом по кругу!
- 8 Пассивных Реликвий: Кольцо Вампира, Амулет Бешеного Гнева (+40% урона при низком HP), Сапоги Скоростной Тени, Тотем Вечного Пламени (поджигает врагов), Чаша Жатвы Душ и другие.
🎮 Управление:
- [W, A, S, D] или Стрелки — Передвижение рыцаря.
- [ПРОБЕЛ / ЛКМ / J] — Взмах оружием ближнего боя.
- [SHIFT / ПКМ / K] — Быстрый рывок (Dash с неуязвимостью сквозь врагов!).
- [F] или [1] — Выпить флягу с кровью (восстановление HP).
- [E] — Заклинание: Волна Гнева (20 МП).
- [R] — Ультрa-заклинание: Сокрушительный Взрыв Грома (45 МП).
- [B] — Открыть меню костра (когда вы стоите рядом с ним).
- [Сенсорный экран / Планшет] — На экране автоматически появляются виртуальный джойстик и кнопки действий!
Files built: index.html, src/index.css, src/types/game.ts, src/utils/sound.ts, src/utils/pixelSprites.ts, src/data/weapons.ts, src/data/relics.ts, src/data/biomes.ts, src/data/bestiary.ts, src/components/UI/HUD.tsx, src/components/UI/BonfireMenu.tsx, src/components/UI/BestiaryModal.tsx, src/components/UI/MainMenu.tsx, src/components/UI/GameOverModal.tsx, src/components/UI/VictoryModal.tsx, src/components/UI/MobileControls.tsx, src/components/GameCanvas.tsx, src/App.tsx