Portal: Flash Version

Seele01-Flash
By
Portal: Flash Version is a mind-bending physics puzzle game where you use a portal gun to defy the laws of time and space. Challenge your problem-solving skills in this innovative brain teaser.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Portal: Mobile Test Subject**". Please read the following detailed game design requirements first, and then generate the code accordingly. *Note: The provided image appears to be unrelated (a sniper game). This prompt strictly follows the textual description for "Portal: Flash Version" but adapts it into a modern 3D mobile experience.* ### 1. Assets & Environment * **Visual Style**: A 2.5D side-scrolling perspective using a **Low-Poly, Clinical Sci-Fi Aesthetic**. The environment should mimic "Test Chambers": clean white modular panels (portable surfaces), dark metal plates (non-portable surfaces), and acid pits (green glowing liquid). * **Camera**: Orthographic or Perspective camera locked to the side view (Z-axis), following the player smoothly on the X/Y axis. * **Key Assets**: * **Player**: A simple, articulated robot or stylized humanoid (low poly count) with a visible "Portal Device" attached to the arm. * **Portals**: 2D sprites or flat meshes rendered on wall surfaces. One Blue (Entry/Exit), One Orange (Entry/Exit). They must emit a particle glow effect. * **Props**: Weighted Storage Cubes (box geometry with heart texture), Floor Buttons (red/green states), and Heavy Duty Super-Colliding Super Buttons. * **VFX**: Particle trails when firing the portal gun; a "shimmer" distortion effect around open portals. * **Mobile Optimization**: Use `THREE.InstancedMesh` for repeating wall tiles. Limit dynamic lights to the player and active portals. Use baked lighting/textures for the static environment to ensure high FPS on mobile devices. ### 2. Audio Requirements * **BGM**: An ambient, sterile, and slightly unsettling electronic track. It should be a seamless loop emphasizing isolation (echoey synths, low industrial hum). * **Sound Effects (SFX)**: * **UI**: Sharp, digital "chirps" for button presses. * **Portal Gun**: A distinct "Zap" sound for firing (different pitch for Blue vs. Orange). * **Portals**: A continuous, low-volume humming loop when standing near an open portal. * **Movement**: Metallic footsteps, a "whoosh" sound when passing through a portal. * **Environment**: A distinct "clunk" when a cube hits the floor or a button. ### 3. Gameplay Loop * **Core Mechanic**: The player must traverse a room to reach the "Exit Elevator/Door". The primary tool is the Portal Gun, which links two points in space. * **Physics Engine**: Integrate **Cannon.js** or **Ammo.js** implies. Critical requirement: **Conservation of Momentum** (entering a floor portal while falling must shoot the player out of a wall portal with horizontal velocity). * **Puzzle Logic**: * Player creates a Blue Portal and an Orange Portal. * Objects (Player and Cubes) pass seamlessly between them. * Switches/Buttons activate doors or moving platforms. * **Win Condition**: The player's collision box touches the Exit Door/Elevator zone. * **Fail Condition**: The player falls into a hazard zone (acid/bottomless pit) or is hit by a turret projectile (respawn at room start). ### 4. Mobile Controls & Interaction * **Layout**: Landscape orientation is mandatory. * **Movement (Left Hand)**: A dynamic **Virtual Joystick** on the bottom-left screen for movement (Left/Right). * **Action (Right Hand)**: * **Jump Button**: A large circular button (bottom-right corner). * **Portal Selector**: A toggle switch or two smaller buttons near the Jump button to select "Blue Portal Mode" or "Orange Portal Mode". * **Aiming & Firing**: **Touch-to-Fire**. Tapping anywhere on the game world (walls/ceilings) fires the *currently selected* colored portal to that location. * *Raycasting*: On tap, raycast from camera to scene. If the hit object is tagged "portable_surface", spawn the portal. * **Feedback**: * **Haptic**: Trigger a short vibration (if supported via Vibration API) when firing a portal or landing a jump. * **Visual**: A trajectory line (dotted) should briefly appear when the player holds their finger down, showing where the portal will land. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Portal: Flash Version

Portal: Flash Version is an innovative physics-based puzzle game that challenges players to think beyond conventional logic. With an impressive 4.1/5 rating from players worldwide, this game puts you in control of a revolutionary portal gun that can create interconnected doorways through space and time. Your mission is to navigate through increasingly complex levels by strategically placing portals to overcome seemingly impossible obstacles.

Core Features

Revolutionary Portal Mechanics

The game's signature feature is the portal gun system that allows you to create two distinct portals - blue and yellow. These portals create seamless connections through space, enabling you to teleport instantly between locations, redirect momentum, and solve puzzles that would otherwise be impossible.

Physics-Defying Gameplay

Every level presents unique physics challenges that require creative thinking. You'll need to understand concepts like momentum conservation, gravity manipulation, and spatial reasoning to progress through the game's intricate puzzle designs.

Progressive Difficulty System

Starting with simple portal placement exercises, the game gradually introduces more complex scenarios involving multiple portals, moving platforms, and environmental hazards that test your strategic thinking abilities.

Browser-Based Convenience

  • Completely Free : No payment required to access all game content
  • No Download Needed : Play instantly in any modern web browser
  • Cross-Platform Compatible : Works on desktop computers, laptops, and tablets
  • Quick Loading : Optimized Flash-based engine for smooth performance

Gameplay Mechanics

The core gameplay revolves around strategic portal placement and physics manipulation. Each level presents obstacles that cannot be overcome through traditional platforming alone. Instead, you must think in three dimensions, considering how portals can redirect your movement, change your approach angle, or even use momentum to reach previously inaccessible areas.

Puzzle Complexity

Levels range from simple introduction scenarios to complex multi-stage puzzles requiring precise timing and strategic portal placement. The game encourages experimentation and creative problem-solving approaches.

Controls and Operation

The game features intuitive controls designed for both keyboard and mouse interaction:

  • A/D Keys : Move left and right through the game environment
  • W Key : Jump to reach higher platforms or avoid obstacles
  • Mouse Movement : Aim your portal gun with precision
  • Mouse Click : Fire portals at target surfaces
  • Q Key : Create blue portals for entry points
  • E Key : Create yellow portals for exit points

Mastering these controls is essential for solving the game's increasingly challenging puzzles. The combination of movement and precise portal placement requires both quick reflexes and strategic thinking.

Why Play Portal: Flash Version

This game offers a unique blend of action and puzzle-solving that appeals to players who enjoy intellectual challenges. Unlike traditional puzzle games that rely solely on logic, Portal: Flash Version incorporates real-time physics simulation, making each solution feel dynamic and rewarding.

The game's innovative mechanics have influenced countless other puzzle games, making it a must-play title for anyone interested in creative game design. Its accessibility through web browsers means you can experience this groundbreaking gameplay without any barriers.

Perfect for Puzzle Enthusiasts

If you enjoy brain teasers, physics puzzles, or innovative game mechanics, Portal: Flash Version delivers an experience that will challenge your preconceptions about spatial navigation and problem-solving.

Frequently Asked Questions (FAQ)