Scramball 2 - Physics Puzzle Ball Game

Seele01-Flash
By
Scramball 2 is a challenging physics-based puzzle game where you guide a misbehaving ball through obstacles to reach the goal hole. With three unique worlds and numerous levels, it tests your precision and patience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Scramball 3D: Mobile Physics Puzzle**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Create a "Modern Retro" aesthetic using a 2.5D perspective. The game world uses 3D geometry but plays on a 2D plane (Side-scrolling view). * **Camera**: Use an **OrthographicCamera** to maintain a precise puzzle view, tracking the player smoothly on the X and Y axes. * **Level Construction**: * **Walls/Terrain**: Use 3D cubes with a bevel modifier or rounded edges. Texture them with a reddish-brown, organic rock pattern (procedural noise or texture) to mimic the screenshot's "dungeon" look. * **Background**: A dark, moody gradient (dark grey to deep violet) to make the foreground elements pop. * **Player Character**: A glossy **Blue Sphere** (MeshStandardMaterial) with high reflectivity. Add a rolling texture (like a stripe) so the player can see the ball rotating. * **The Goal**: A metallic **Blue Ring/Torus** recessed into the wall or floating, emitting a soft blue pulse light. * **Hazards**: Glowing **Orange Orbs** or Spikes that emit orange point lights. * **Performance**: Use `InstancedMesh` for repeated wall blocks to ensure 60FPS on mobile browsers. Limit shadow casting to the player only. ### 2. Audio Requirements * **BGM**: A quirky, slightly erratic "funky jazz" or "breakbeat" loop that reflects the "scrambled/badly behaving" theme. * **Sound Effects (Synthesized)**: * **Rolling**: A low hum that increases pitch with velocity. * **Collision**: A "thud" or hollow "bonk" sound when hitting walls (volume dependent on impact force). * **Win**: A satisfying "suction" sound followed by a high-pitched chime. * **Lose/Hazard**: A "fizzing" electric sound or a shattering glass sound. ### 3. Gameplay Loop * **Physics Engine**: MUST use a physics library (like **Cannon.js** or **Ammo.js**) to handle collisions, gravity, and momentum. * **The "Bad Behavior" Mechanic**: The ball should have specific physics properties to match the description: * **Low Friction**: The ball slides easily, making it hard to stop precisely. * **High Restitution**: The ball is bouncy. Hitting a wall too hard might send the player flying backward. * **Objective**: Navigate the blue ball from the spawn point to the Blue Hole. * **Fail State**: Touching an Orange Hazard or falling off the bottom of the screen resets the level immediately. * **Win State**: Touching the Blue Hole triggers a particle confetti explosion and loads the next level (or regenerates the maze). ### 4. Mobile Controls & Interaction * **Control Scheme**: **Virtual Joystick**. * Place a translucent circular joystick UI in the bottom-left or bottom-right corner (user-configurable or auto-detect). * Joystick input applies **Force/Torque** to the ball, not direct position translation, to preserve physics momentum. * **Screen Orientation**: **Landscape Mode** is preferred for wider visibility of the maze, but the camera zoom should adapt if the user is in Portrait. * **UI/UX**: * **Restart Button**: A large (min 48x48px) icon in the top-right corner for quick retries (crucial for puzzle games). * **Haptic Feedback**: Trigger `navigator.vibrate(50)` when the ball hits a wall hard, and `navigator.vibrate([100, 50, 100])` on death. * **Touch Action**: Ensure `touch-action: none` is set on the canvas to prevent browser scrolling while playing. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Scramball 2 is an engaging physics puzzle game that will test your ball-handling skills like never before. This challenging puzzle game features a ball that doesn't behave as expected - it bounces, rolls, and moves in unpredictable ways that will keep you on your toes. Your mission is simple: guide the ball to the hole. But don't be fooled by the straightforward objective - this ball has a mind of its own!

Core Features

This physics-based puzzle game offers an exciting and frustrating experience in the best possible way:

  • Completely Free : Play directly in your browser without any downloads or payments required
  • Physics-Based Gameplay : Realistic ball physics with unpredictable movement patterns
  • Three Unique Worlds : Each world presents different challenges and environments
  • Multiple Levels : Numerous levels designed to progressively increase difficulty
  • Simple Controls : Easy-to-learn arrow key controls suitable for all ages
  • Browser Compatible : Works perfectly on desktop computers and laptops

Challenging Physics Mechanics

What makes Scramball 2 unique is its realistic physics engine. The ball doesn't simply roll where you want it to go - it bounces off walls, gains momentum, and sometimes seems to have a mind of its own. This creates a puzzle experience that requires both strategy and adaptability.

Progressive Difficulty System

Starting with simpler levels to help you understand the ball's behavior, the game gradually introduces more complex obstacles and tighter spaces. Each world brings new challenges that will test different aspects of your ball-handling abilities.

Gameplay Mechanics

The core gameplay revolves around physics-based puzzle solving:

  • Objective : Guide your ball from the starting position to the goal hole
  • Challenge : The ball behaves unpredictably due to realistic physics
  • Strategy : Plan your moves carefully, considering momentum and bounce angles
  • Precision : Fine-tune your control inputs to navigate tight spaces
  • Patience : Some levels require multiple attempts to master the ball's behavior

Controls Guide

Scramball 2 features intuitive controls that are easy to learn:

  • Arrow Keys : Control ball movement in all four directions
  • Up Arrow : Apply upward force to the ball
  • Down Arrow : Apply downward force to the ball
  • Left/Right Arrows : Apply horizontal force to move the ball sideways

The key to success is understanding that the controls apply force rather than direct movement, making timing and precision crucial.

Why Play Scramball 2

This game is perfect for players who enjoy:

  • Brain Teasers : Each level is a unique puzzle requiring different strategies
  • Physics Challenges : Understanding and working with realistic ball physics
  • Progressive Difficulty : Gradual skill building from easy to expert levels
  • Quick Gaming Sessions : Perfect for short breaks or extended puzzle-solving sessions
  • Skill Development : Improves spatial reasoning and problem-solving abilities

Whether you're looking for a casual puzzle game or a challenging physics-based experience, Scramball 2 delivers both entertainment and mental stimulation. The unpredictable ball behavior ensures that no two attempts are exactly the same, keeping the gameplay fresh and engaging throughout all three worlds.

Frequently Asked Questions (FAQ)