Flashman - Classic Pac-Man Style Maze Game

Seele01-Flash
By
Flashman is a charming tribute to the classic Pac-Man arcade experience. Navigate through maze levels, collect all dots while avoiding colorful ghosts in this nostalgic action-packed adventure.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Flashman**" (a modern 3D arcade maze chase). Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A stylized, "Neo-Retro" arcade aesthetic. Use a **Low-Poly** approach to ensure high frame rates on mobile devices. * **The Maze:** Construct a grid-based labyrinth using simple 3D blocks with neon blue edges (emissive material). The floor should be a dark, non-reflective material to highlight the characters. * **The Player (Flashman):** A bright yellow `SphereGeometry`. Implement a "mouth" animation (opening and closing) using simple vertex manipulation or by rotating two hemispheres. * **The Ghosts:** Create 4 distinct enemy types using a combination of a cylinder (body) and a sphere (head). Colors: Red, Cyan, Orange, Pink. They should have large white eyes (small spheres) that look in the direction of their movement. * **Collectibles:** * **Dots:** Small, static yellow cubes or spheres distributed throughout the maze paths. * **Power Pellets:** Larger, pulsating spheres located at the four corners. * **Background:** Replicate the game screenshot's gradient style: A smooth `ShaderMaterial` or CSS background that transitions from Deep Navy Blue (top) to Sunset Orange (bottom). * **Optimization:** **Crucial for mobile:** Use `InstancedMesh` for the maze walls and the collectible dots to minimize draw calls. ### 2. Audio Requirements * **BGM:** A fast-paced, 8-bit synthesized electronic loop (chiptune style) that increases in tempo slightly as the number of dots decreases. * **SFX:** * **Waka-Loop:** A rhythmic "chomp" sound that plays only while the player is moving. * **Pellet Eat:** A high-pitched digital "ping". * **Power Mode:** A siren-like looping alarm when ghosts are vulnerable. * **Ghost Eat:** A distinct "crunch" sound followed by a rising score tone. * **Death:** A classic descending slide-whistle or bit-crushed dissolve sound. ### 3. Gameplay Loop * **Core Mechanic:** The player navigates the maze to eat all small dots to win the level. Movement is continuous; the player does not stop until they hit a wall. * **Conflict:** Four ghosts chase the player. If a ghost touches the player, the player loses a life and respawns at the start. Game Over if lives reach 0. * **Power-Up State:** Eating a "Power Pellet" turns all ghosts Dark Blue for 10 seconds. During this time, ghosts move slower and flee from the player. The player can eat them for bonus points, sending the ghost eyes back to the center box to respawn. * **Win Condition:** All dots are cleared. Show a "Level Complete" overlay and restart with slightly faster ghost speed. ### 4. Mobile Controls & Interaction * **Control Scheme:** Implement **Swipe Gestures** (Up, Down, Left, Right) anywhere on the screen. * *Logic:* Since movement is grid-based, a swipe should "queue" the next turn. The character will turn at the next available intersection in the swiped direction. This provides a smoother feel than instant turning. * **Orientation:** Lock to **Portrait Mode** (to allow one-handed play) or adapt the camera to a Top-Down Orthographic view that fits the maze within the screen width regardless of aspect ratio. * **UI Layout:** * **Score/Lives:** Placed at the very top, away from the play area. * **Start/Restart Button:** Large, rounded button (min height 60px) centered on the screen for Game Over/Start states. * **Feedback:** * **Haptics:** Trigger a short vibration (`navigator.vibrate(50)`) when the player eats a Power Pellet or a Ghost. Trigger a long vibration on Death. * **Visual:** Screen shake effect slightly when the player dies. Floating text ("+200") when a ghost is eaten. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Flashman brings back the golden age of arcade gaming with its classic maze-running gameplay. This delightful action game captures the essence of the legendary Pac-Man experience, featuring a yellow character navigating through intricate mazes while being chased by colorful ghosts. With its simple yet addictive gameplay mechanics, Flashman appeals to both nostalgic gamers and newcomers to the classic arcade genre.

The game maintains the timeless appeal of maze-based arcade action, where strategy meets reflexes in an exciting chase scenario. Players must demonstrate quick thinking and precise movement to successfully clear each level while avoiding the persistent ghost enemies.

Core Features

Flashman delivers authentic arcade entertainment with these standout features:

  • Classic Maze Gameplay : Navigate through carefully designed maze levels reminiscent of arcade golden age
  • Colorful Ghost Enemies : Face off against multiple ghost characters, each with distinct colors and behaviors
  • Progressive Difficulty : Experience increasingly challenging maze layouts and faster-paced gameplay
  • Instant Browser Play : No downloads required - play immediately in your web browser
  • All Ages Content : Family-friendly gameplay suitable for players of every generation
  • Retro Charm : Authentic pixel art style and classic sound effects that honor arcade tradition

Nostalgic Gaming Experience

The game successfully recreates the excitement and tension of classic arcade maze games. Each level presents new challenges while maintaining the core gameplay loop that made the original concept so enduringly popular.

Strategic Gameplay Elements

While simple to learn, Flashman requires strategic thinking to master. Players must plan their routes, anticipate ghost movements, and make split-second decisions to survive and progress through increasingly difficult levels.

Game Mechanics

Flashman follows the beloved maze-chase formula with these core mechanics:

  • Dot Collection : Clear each level by collecting every dot scattered throughout the maze
  • Ghost Avoidance : Navigate around colorful ghost enemies that patrol the maze corridors
  • Movement Strategy : Use maze corners and passages strategically to outmaneuver pursuing ghosts
  • Level Progression : Advance through multiple maze configurations with increasing complexity

Controls and Instructions

The game features intuitive controls that anyone can master:

  • Arrow Keys : Use UP, DOWN, LEFT, and RIGHT arrows to guide your character through the maze
  • Movement : Your character moves continuously in the direction pressed
  • Direction Changes : Press arrow keys to change direction at intersections
  • Objective : Collect all dots in the maze while avoiding ghost contact

The responsive controls ensure smooth navigation through tight maze corridors, allowing players to execute precise movements needed for successful dot collection and ghost evasion.

Why Play Flashman

Flashman offers compelling reasons to dive into this classic arcade experience:

Perfect for Quick Gaming Sessions : Each level provides satisfying gameplay that fits perfectly into short breaks or casual gaming moments.

Nostalgic Appeal : Experience the charm and excitement that made arcade maze games legendary, now available instantly in your browser.

Universal Accessibility : With simple controls and clear objectives, the game welcomes players of all skill levels and ages.

No Commitment Required : Jump in and play immediately without downloads, installations, or account creation.

Timeless Gameplay : The classic maze-chase formula remains as engaging today as it was decades ago, proving that great game design transcends generations.

Whether you're introducing younger players to arcade classics or revisiting fond gaming memories, Flashman delivers authentic entertainment that captures the magic of the original maze-running experience.

Frequently Asked Questions (FAQ)