Shape Happens! — A 3D Shape-Shifting Arcade Game

By (@anita) · · Games

Meet your panicked geometric hero! In Shape Happens!, you’ll need quick reflexes to morph between a circle, square, and triangle before each approaching gate. Pick the right shape, keep your run alive, and see how high you can score. Play with taps or swipes on mobile, or use the 1, 2, and 3 keys on desktop. Ready to take on the leaderboard?

Tech stack

  • Google AI Studio (4 Argon)
  • Gemini (4 Argon)

Prompt steps

  1. Step 1

    You are a senior creative frontend and browser-game engineer. Build a complete, playable, polished web game called “SHAPE HAPPENS!”
    Do not just make a static mockup or landing page. Implement the actual game, make it responsive, run it, test it, and fix any errors.
    First inspect the project
    Inspect the existing repository and follow its current framework and conventions.
    Do not replace working code unnecessarily.
    If the repository is empty, create a Vite + React + TypeScript project and use Three.js for the 3D game.
    Use the attached concept image as visual direction only. Recreate the art with original procedural 3D shapes; do not use the image as a flat game background.
    Do not use external APIs, accounts, online leaderboards, or remote image/audio assets. The game must work locally.
    Game concept
    The player controls a cute, panicked geometric character running along a ridiculous 3D obstacle course. The character must change shape to pass through matching gates:
    Circle character → circle gate
    Square character → square gate
    Triangle character → triangle gate
    The game should feel absurd, funny, cute, fast, and immediately understandable. Give the character big googly eyes, little feet, and expressive reactions. Use squash-and-stretch animations when it changes shape or gets bonked.
    Gameplay
    The character automatically runs forward on a colorful 3D track.
    Shape gates approach one at a time.
    The player must choose the matching shape before reaching each gate.
    Passing through the correct gate gives 1 point and a short silly celebration.
    Hitting the wrong gate causes a funny bounce, removes one heart, and briefly protects the player from another hit.
    Start with 3 hearts.
    Increase the speed gradually as the score rises, but keep the game fair.
    When all hearts are gone, show a game-over screen with the score, saved best score, and a working Retry button.
    Save the best score in localStorage.
    Controls
    Desktop:
    Press 1 for Circle
    Press 2 for Square
    Press 3 for Triangle
    Also support left/right arrow keys to cycle shapes.
    Mobile:
    Show three large, easy-to-tap shape buttons at the bottom of the screen.
    Ensure the buttons do not cover important gameplay.
    The selected shape must be visually obvious using both its silhouette and color; do not rely on color alone.
    Visual direction
    Create a polished, toy-like 3D arcade style:
    Deep purple or near-black background
    Extremely vivid acid yellow, hot magenta, electric cyan, lime green, orange, and purple
    Glossy plastic materials, soft shadows, dramatic lighting, exaggerated perspective
    Geometric gates, springy platforms, silly signs, confetti, and ridiculous decorations
    The central character should be cute and readable even on a phone screen
    Keep text readable against the bright colors
    Make the game lively, but do not clutter the play area
    Use Three.js procedural geometry for the character, gates, track, and decorations. Do not leave important objects as placeholder boxes.
    Funny tone
    Use short, playful messages at random moments, such as:
    “OH NO, MY CORNERS!”
    “That gate has standards.”
    “You were a square two seconds ago.”
    “Certified triangle behavior.”
    “Bonk detected.”
    “The circle regrets nothing.”
    Keep the jokes friendly and absurd.
    Screens and interface
    Implement:
    A title screen with the game name “SHAPE HAPPENS!”, a large character preview, a Play button, and a short How to Play explanation.
    A gameplay screen with score, hearts, pause/mute controls, the 3D track, and shape controls.
    A pause state.
    A game-over screen with score, best score, and Retry.
    Use HTML/CSS overlays for readable UI and Three.js for the 3D scene. The interface should feel like an arcade game, not a SaaS dashboard.
    Audio and accessibility
    Add a sound on/off toggle.
    If you add sound, generate simple optional effects locally with Web Audio; do not require audio files.
    Do not autoplay sound before the player starts.
    Respect prefers-reduced-motion where practical.
    Make controls keyboard-accessible and buttons large enough for touch.
    Quality requirements
    The game must work on desktop and mobile browsers.
    The Play, pause, mute, shape controls, Retry, score, and best-score features must all work.
    Handle window resizing and clean up animation loops and Three.js resources.
  2. Step 2

    Implement a mechanic that gradually increases the track speed and obstacle frequency as the player survives longer to make the game increasingly challenging.
  3. Step 3

    Add a screen shake effect triggered when the player hits an obstacle or during high-intensity moments to make the game feel more chaotic.
  4. Step 4

    Add a particle system that triggers an explosion of geometric shapes behind the character when they successfully pass through a gate or when they morph between forms.
  5. Step 5

    Introduce collectible power-up orbs on the track that grant temporary effects, such as slowing down time for 5 seconds or generating a temporary protective shield.
  6. Step 6

    Implement a dynamic camera zoom effect that pulls back slightly as the track speed increases and tightens when the player is moving slowly, enhancing the sense of velocity.
  7. Step 7

    Introduce non-lethal, interactive environmental hazards like 'shifting track lanes' or 'bouncy pads' that push the character off-center, requiring the player to re-adjust their position.
    
    audit= make sure good play in phone

Comments (2)

  1. Jack Herzlich · · 1 like

    Real neat game Anita. The graphics look really great ngl, argon cooked. Fun game I actually started getting decent. I like how it speeds up too. Nice job as always!

    1. anita ·

      4 Argon has good 3D rendering results and camera views.

  2. sasam ·

    <p>Just tried it, and everything works flawlessly. This is insane! All with just one consistent model. </p>

4 likes · 3 comments · 7 views

Explore more on Prompted

Loading