Castle Escape - Medieval Puzzle Adventure

Seele01-Flash
By
Castle Escape is a challenging medieval-themed point and click adventure game where you must solve intricate puzzles to break free from an ancient castle. This compact HTML5 game delivers an immersive escape room experience directly in your browser.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Castle Escape". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: "3D Diorama / Cutaway" style using **Low-Poly geometry** with **Flat Shading** (Toon/Cel-shaded look). Mimic the vector art style of the screenshot using `MeshToonMaterial` or `MeshLambertMaterial` with simple solid colors (Grey bricks, brown wood, light blue background). * **Room Structure**: A semi-circular room (half-cylinder cutaway) representing the interior of a castle tower. * **Key Objects (Constructed from Primitives)**: * **Walls**: Grey curved walls with a brick texture pattern (can be simulated with simple geometry or texture). * **Door**: A wooden door with a large, golden **Padlock** interactable mesh. * **Window**: Arched barred window on the left. Crucial: Create a **"God Ray"** (light shaft) effect coming from the window using a semi-transparent yellow Cone geometry to simulate sunlight hitting the floor. * **Furniture**: A simple wooden bed with a pillow (interactable), a framed painting on the wall (interactable), and a small mouse hole near the floor. * **Camera**: Use an **Orthographic Camera** positioned at an isometric-like angle to view the whole room at once without perspective distortion. * **Optimization**: Use instanced meshes for repeated bricks if possible, or keep geometry simple (Box/Cylinder primitives) to ensure 60FPS on mobile browsers. ### 2. Audio Requirements * **BGM**: A short, looping, mysterious but calm medieval melody (Harp or Lute style). * **Sound Effects (Synthesized or Placeholder)**: * **Tap/Select**: A wooden "tock" sound. * **Locked**: A metal "rattle" sound when clicking the door without the key. * **Success**: A bright "chime" or "unlocking" click when the puzzle is solved. * **Ambience**: Very faint wind howling outside. ### 3. Gameplay Loop * **Objective**: Find the hidden key to unlock the door and escape. * **State Machine**: 1. **Start**: Player sees the locked room. Tapping the door rattles the lock (Feedback: "It's locked"). 2. **Investigation**: * Tapping the **Pillow** moves it aside to reveal a **Gold Key**. * Tapping the **Painting** might wobble it or reveal a hidden clue (optional). 3. **Collection**: Tapping the revealed **Key** adds it to the Inventory (simple UI slot). 4. **Action**: Dragging the Key to the Door (or tapping the Door while Key is selected) triggers the "Unlock" animation. 5. **Win**: The door rotates open, light floods in, and a "Escaped!" UI overlay appears. ### 4. Mobile Controls & Interaction * **Input System**: Use `Raycaster` triggered by `touchstart` (for instant response) and `click` (fallback). * **Screen Adaptation**: * The game must support **Landscape Mode** primarily (to match the wide room view), but scaling logic should ensure the room fits within the viewport on Portrait devices (add letterboxing if needed). * **UI Layout**: * **Inventory Bar**: A persistent bar at the bottom of the screen (height: 10% of screen). Slots should be at least 44x44px. * **Message Overlay**: A text area at the top center to display hints like "The door is locked" or "Found a key!". * **Feedback**: * **Visual**: When an interactable object is touched, highlight it (emissive color flash) or scale it up slightly (1.1x) for a frame to indicate registration. * **Haptic**: Trigger `navigator.vibrate(20)` on valid interactions if supported. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Castle Escape is an engaging medieval-themed puzzle adventure that challenges players to escape from a mysterious ancient castle. This point and click adventure game combines classic escape room mechanics with beautiful medieval aesthetics, creating an immersive experience that will test your problem-solving skills.

Set in a stone castle chamber, the game presents players with a series of interconnected puzzles and hidden objects that must be discovered and solved in the correct sequence to achieve freedom. The game's medieval setting features authentic details like stone walls, wooden furniture, and period-appropriate items that enhance the atmospheric gameplay.

Core Features

Challenging Puzzle Mechanics

Castle Escape offers a sophisticated puzzle experience that requires careful observation and logical thinking. Each room element serves a purpose, from furniture placement to decorative items that may hide crucial clues.

Point and Click Adventure Gameplay

The intuitive point and click interface makes the game accessible while maintaining depth. Simply click on objects to examine them, collect useful items, and interact with various elements throughout the castle chamber.

Compact HTML5 Design

Remarkably, this entire adventure is delivered in an incredibly small file size while maintaining high-quality graphics and smooth gameplay. The game runs seamlessly in any modern web browser without requiring downloads or plugins.

Medieval Atmosphere

Immerse yourself in an authentic medieval setting with carefully crafted stone architecture, period furniture, and atmospheric lighting that brings the castle environment to life.

Game Mechanics

The core gameplay revolves around exploration and puzzle-solving:

  • Observation : Examine every corner of the castle chamber for hidden clues and interactive objects
  • Item Collection : Gather useful items that can be combined or used to solve various puzzles
  • Logical Deduction : Connect clues and understand the relationships between different puzzle elements
  • Sequential Problem Solving : Many puzzles must be solved in a specific order to progress

Operation Guide

Basic Controls

  • Mouse Click : Interact with objects, examine items, and navigate the interface
  • Cursor Changes : Watch for cursor changes that indicate interactive elements
  • Inventory : Access collected items through the game's inventory system
  • Observation Mode : Click and hold to examine objects more closely

Gameplay Tips

  • Thoroughly examine every visible object in the room
  • Some items may be hidden behind or inside other objects
  • Pay attention to patterns, numbers, and symbols throughout the chamber
  • Experiment with item combinations when stuck
  • Think logically about how medieval mechanisms might work

Why Play Castle Escape

Castle Escape offers a perfect blend of challenge and accessibility that appeals to both puzzle enthusiasts and casual gamers. The medieval setting provides a refreshing backdrop that sets it apart from modern escape room games.

The game's compact design means quick loading times and smooth performance on any device, while the challenging puzzles ensure lasting entertainment value. Whether you're looking for a brief mental challenge or an engaging puzzle experience, Castle Escape delivers quality gameplay in an elegant package.

The point and click mechanics are intuitive enough for newcomers to the genre while offering sufficient complexity to satisfy experienced puzzle solvers. The medieval theme adds educational value, introducing players to historical elements and architectural details in an entertaining format.

Frequently Asked Questions (FAQ)