Portal Escape - 3D Puzzle Platformer Game

Seele01-Flash
By
Portal Escape combines innovative portal mechanics with challenging platformer gameplay. Create portals, solve puzzles, and navigate through dangerous levels in this mind-bending 3D adventure that tests both your logic and reflexes.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Portal Escape". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Adopt a "Clean Laboratory" aesthetic inspired by the reference image. Use a low-poly, high-contrast style optimized for mobile GPUs. * **Walls/Floors**: Use a grid-based texture system. White panels represent "portal-conductive" surfaces; dark grey/metal panels are non-conductive. * **Character**: A sleek, simple 3D humanoid or stylized capsule character (similar to the silhouette in the image) with a distinct "Portal Device" attached to the right arm. * **Portals**: Instead of expensive render-to-texture recursion (which lags on mobile), use glowing, swirling shader materials on flat oval geometries. One Cyan (Blue), one Orange. Add particle emitters around the edges to signify active states. * **Lighting**: Baked ambient occlusion for static geometry to save performance. Use a single directional light for dynamic shadows on the player and movable cubes. * **Performance Constraints**: strictly limit draw calls. Use instanced mesh rendering for floor and wall tiles. Target 60fps on mobile browsers. ### 2. Audio Requirements * **BGM**: A suspenseful yet intellectual "Ambient Techno" track. It should be low-tempo, featuring synthesizer pads and a subtle rhythmic pulse to encourage puzzle-solving focus. * **Sound Effects (SFX)**: * **Portal Gun**: A high-pitched "Zap" when firing. * **Portal Open**: A distinctive "Hum-Pop" sound when a portal successfully forms on a wall. * **Teleportation**: A "Whoosh" sound accompanied by a slight screen distortion effect or chromatic aberration. * **Cube Interaction**: A metallic "Clank" when picking up or dropping the Weighted Companion Cube. * **Jump/Land**: Soft rubber/sneaker sounds on tile floors. ### 3. Gameplay Loop * **Objective**: The player spawns in a closed test chamber and must reach the "Exit Elevator" to win. * **Core Mechanics**: * **Portal Physics**: The player shoots two linked portals. Entering one instantly teleports the player (or objects) to the other, preserving momentum (velocity magnitude remains, direction reorients relative to the exit portal). * **The Cube**: Levels contain "Weighted Cubes" and "Floor Buttons." The player must use "E" (mapped to a touch button) to pick up a cube and place it on a button to activate doors or platforms. * **Raycasting**: Prevent portals from overlapping or being placed on non-conductive (dark) surfaces. * **Win Condition**: Successfully colliding with the Exit Elevator trigger. * **Fail Condition**: Falling into "acid" pits (green liquid floors) resets the level instantly. ### 4. Mobile Controls & Interaction * **Control Scheme (Virtual Overlay)**: * **Movement**: A floating Virtual Joystick on the bottom-left of the screen for character movement (WASD equivalent). * **Camera**: Swipe anywhere on the right half of the screen to rotate the camera view. * **Action Buttons (Right Side)**: * **Jump Button**: Large circular button at the bottom-right. * **Portal Buttons**: Two distinct buttons above the Jump button. One Blue, One Orange. Tapping them fires a raycast from the center of the screen to place a portal. * **Interact Button**: A context-sensitive "Hand Icon" button that only appears/lights up when the player is within range of a liftable Cube. * **Orientation**: Landscape mode locked. * **Feedback**: * **Haptics**: Trigger a short vibration (`navigator.vibrate(50)`) when firing a portal or landing a jump. * **Visuals**: A crosshair in the center of the screen changes color (e.g., turns red) if aiming at a non-conductive surface to guide the player. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Portal Escape is an innovative 3D puzzle platformer that revolutionizes traditional gaming with its unique portal mechanics. This thrilling adventure combines the excitement of platforming with brain-teasing puzzle elements, creating an engaging experience that challenges both your strategic thinking and quick reflexes. The game features a mysterious hero navigating through dangerous levels filled with traps, obstacles, and mind-bending challenges.

The core gameplay revolves around creative portal usage - players can create interconnected gateways to traverse impossible distances, bypass deadly traps, and reach seemingly unreachable areas. Each level presents a new puzzle to solve, requiring careful planning and precise execution.

Core Features

Revolutionary Portal Mechanics

The game's standout feature is its intuitive portal system. Players can create two distinct portals - blue and orange - that serve as instant transportation gateways. Step into one portal and emerge from the other, opening up endless possibilities for creative problem-solving and level navigation.

Dynamic 3D Environment

Experience stunning 3D graphics with immersive visual effects that bring each level to life. The game features smooth animations, vibrant portal effects, and detailed environmental design that enhances the overall gaming experience.

Challenging Puzzle Design

Each level is meticulously crafted to present unique challenges that require both logical thinking and quick reflexes. From simple portal placements to complex multi-step solutions, the difficulty gradually increases to keep players engaged.

Interactive Elements

Beyond portal creation, players can interact with various environmental objects including moveable cubes that serve as platforms, switches, and puzzle components. The cube-lifting mechanic adds another layer of strategy to level completion.

Competitive Missions

The game includes competitive elements with time-based challenges and score systems, encouraging players to find the most efficient solutions and compete with others.

Gameplay Mechanics

Portal Creation and Usage

Master the art of portal placement by understanding physics and spatial relationships. Portals maintain momentum, allowing players to build speed and reach new heights. Strategic portal placement is key to solving complex puzzles and navigating challenging terrain.

Environmental Interaction

Lifting and moving cubes is essential for puzzle solving. These interactive elements can be used as platforms, weights for pressure plates, or obstacles to block dangerous hazards.

Level Progression

Each level presents escalating challenges that introduce new mechanics and obstacles. Players must adapt their strategies and learn new techniques to progress through increasingly complex environments.

Controls Guide

Movement Controls

  • WASD Keys : Control character movement in all directions
  • Spacebar : Jump to reach higher platforms and avoid obstacles
  • Mouse Movement : Look around and aim portal placement

Portal Controls

  • Left Mouse Button : Create blue portal at the targeted location
  • Right Mouse Button : Create orange portal at the targeted location
  • E Key : Lift and carry cubes for puzzle solving

Advanced Techniques

Master advanced portal techniques such as momentum preservation, portal-assisted jumps, and strategic cube placement to solve the most challenging levels efficiently.

Why Play Portal Escape

Perfect for Puzzle Enthusiasts

If you enjoy games that challenge your mind and test your problem-solving abilities, Portal Escape offers the perfect blend of logic puzzles and action gameplay. Each level presents a unique brain teaser that requires creative thinking.

Suitable for All Skill Levels

The game features progressive difficulty, making it accessible for newcomers while providing substantial challenges for experienced puzzle gamers. The intuitive controls ensure anyone can start playing immediately.

Endless Replayability

With multiple ways to solve each level and competitive time challenges, Portal Escape offers significant replay value. Players can experiment with different strategies and strive for perfect completion times.

Free to Play

Experience this innovative puzzle platformer completely free without any downloads or installations required. Simply open your browser and start playing immediately.

Cross-Platform Compatible

Play Portal Escape on any device with a web browser - whether you're on a desktop computer, laptop, tablet, or mobile device, the game adapts to your screen size and input method.

Frequently Asked Questions (FAQ)