Важно не делай очень сильное свечние! ROLE: Act as a Senior Creative Developer and…
- User
Важно не делай очень сильное свечние! ROLE: Act as a Senior Creative Developer and Graphics Engineer specializing in WebGL, Three.js, and GLSL shader programming. You are an expert in creating atmospheric, high-performance 3D browser games with a Don't Starve aesthetic using isometric top-down view but with modern PBR rendering. GOAL: Create a complete, playable prototype of an epic winter battle scene using Three.js where the user controls the main hero character. The code must be modular, highly detailed, and visually stunning with maximum shader sophistication. PLAYER CHARACTER AND CONTROLS: The player controls the main hero character, a detailed warrior standing in the middle of the battlefield. Controls: Use WASD or Arrow keys for smooth movement. Use Spacebar or Mouse Click for attacking. Use Shift for dodging or sprinting. Camera: The camera must smoothly follow the player character but strictly maintain the Orthographic top-down isometric perspective exactly like Don't Starve. No perspective distortion, just a fixed tilted angle that tracks the player's X and Z coordinates. Player Visuals: The hero must be highly detailed, composed of 3D primitives or procedural geometry with PBR materials. Add a weapon with a glowing trail when attacking, dynamic footprints in the snow when moving, and breath fog particles in the cold air. SCENARIO AND GAMEPLAY FLOW: Phase 1 - The Siege: The scene opens with an intense battle around Baba Yaga's Hut on Chicken Legs. The player and a squad of AI-controlled Medieval Crusaders attack the hut. The hut is a living creature standing on massive chicken legs that shift and move. It has a face-like structure with a gaping maw or mouth entrance that opens and closes menacingly. The wooden logs form facial features. Crusaders in white tunics with red crosses run around, attacking the hut dynamically. Phase 2 - The Boss Fight: When the hut is defeated, it collapses dramatically with particle effects and debris. From the ruins emerges Baba Yaga herself, flying on her iconic Mortar. She moves with a specific, deliberate flight speed, using a floating hovering motion. She wields a giant Pestle. She flies around the arena in sweeping patterns, attacking the player and crusaders with magical projectiles that leave glowing trails. The player must dodge and attack her. VISUAL STYLE AND CAMERA: Perspective must be Orthographic Camera with top-down isometric view exactly like Don't Starve. Atmosphere is deep winter with heavy snowfall, frozen forest environment with snow-covered pine trees, icy ground with footprints and battle scars. Lighting must have high contrast: cold blue ambient light representing moonlight and winter atmosphere, versus warm orange light from the hut windows, magical spells, and fire effects. Use volumetric lighting and god rays. Quality must be maximum detail. Every object, from the hero's armor to the hut's logs and Baba Yaga's mortar, must have high geometric complexity and PBR materials for wood grain, metal, fabric, snow, and ice. TECHNICAL REQUIREMENTS: Engine: Three.js with modern ES modules. Shaders GLSL: You must write custom advanced shaders for: Snow system with animated vertex displacement for falling snowflakes, ground accumulation, and wind effects. The Hut's living features - the mouth should animate, the legs should have procedural movement. Magic effects with glowing particles, bloom, and energy trails for Baba Yaga's attacks and the player's weapon. Atmospheric fog with depth-based density and color grading. Water and ice reflections on frozen ground. Fire and ember particles from the hut windows and magical effects. Post-Processing: Use EffectComposer with RenderPass, ShaderPass for color grading and atmosphere, UnrealBloomPass for magical glow effects, and film grain or chromatic aberration for cinematic feel. Entities and Characters: The Hut on Chicken Legs: Complex 3D structure with detailed log construction, animated chicken legs with procedural animation, a face-like facade with an animated gaping maw entrance, glowing windows, smoke particles. Crusaders: Use instanced meshes for performance. Detailed armor, weapons, shields. Basic AI to pathfind toward the hut or Baba Yaga, attack animations, and death sequences. Baba Yaga: Detailed character composition flying on the Mortar. The Mortar should have glowing eyes or decorations. She flies with smooth interpolation, bobbing hovering motion, and shoots magical projectiles. Player Hero: Detailed 3D model, smooth movement physics, attack animations, weapon trail effects. Particle systems everywhere: snow, fire, magic, debris, footprints in snow, breath fog. Logic and Game Flow: Implement a state machine that transitions from Phase 1 to Phase 2. The transition should be dramatic with camera shake and screen effects. During Phase 1, the player and crusaders attack the hut. During Phase 2, the player actively fights Baba Yaga, dodging her projectiles and attacking her when she flies close. Add dynamic camera shake for impacts and major events. OUTPUT FORMAT: Provide the full, copy-pasteable HTML and JavaScript code structure. Include the complete HTML shell. Include the Three.js setup with scene, orthographic camera, renderer with shadows and post-processing. Include all shader code as strings with heavy comments. Include the complete game logic with the state machine, player controller, camera follow logic, and animation systems. Comment heavily throughout explaining the shader logic, state transitions, and architectural decisions. Make the code modular and extensible. CONSTRAINTS: Do not use simple 2D sprites. Everything must be 3D geometry rendered via WebGL with proper lighting and shadows. Prioritize performance using InstancedMesh for crowds, but do not sacrifice visual fidelity. The Don't Starve orthographic view is non-negotiable. Ensure the code runs in a modern browser without external model dependencies, using highly detailed procedural geometry. The visual quality should be AAA browser game level.
- Assistant
Создаю полноценный прототип зимней битвы на Three.js: сначала проверю структуру проекта и установлю зависимости.
Устанавливаю Three.js и готовлю модульную структуру игры.
Собираю модульную архитектуру игры: шейдеры, сущности, системы частиц и основной цикл.
Собираю React UI и исправляю мелкие ошибки TypeScript.
Проверяю сборку проекта.
Сборка прошла успешно. Улучшаю додж, баланс боя и плавность камеры.
Исправлю sprint: после рывка Shift продолжит ускорять движение.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.