Orbit - Space Physics Puzzle Game

Seele01-Flash
By
Orbit is a challenging space physics puzzle game that puts you in control of satellite launches and orbital mechanics. Navigate complex gravitational fields to achieve perfect orbits in this scientifically-inspired browser game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Orbit**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Minimalist "Deep Space" aesthetic. Use a high-contrast color palette: Deep black/dark purple background, Neon Blue for the central planet (gravity source), and Bright Orange/White for the player's satellite. * **Core Objects**: * **Planet (Attractor)**: A `THREE.SphereGeometry` with a glowing shader material (emissive) to represent the gravity well. * **Satellite (Projectile)**: A smaller low-poly sphere. * **Trajectory Trail**: A dynamic `THREE.Line` or particle trail that renders the path the satellite has taken. This is crucial for the "Puzzle" aspect so players can visualize the ellipse. * **Environment**: A particle system starfield in the background that moves slightly (parallax effect) based on camera movement to create depth. * **Mobile Optimization**: Use `InstancedMesh` for background stars. Ensure low polygon counts for spheres. Use simple lighting (Ambient + one PointLight at the center) to save battery and GPU resources on mobile. ### 2. Audio Requirements * **BGM**: A minimal, ambient, slightly eerie "space drone" sound (suggest using a synthesizer library or placeholder generated audio). * **SFX**: * **UI/Interaction**: A digital "charging" sound when dragging to aim. * **Launch**: A soft "thwip" or compressed air release sound. * **Collision/Fail**: A heavy, low-frequency "thud" or static crunch if the satellite hits the planet. * **Success**: A harmonic chime if the satellite completes a full orbit. ### 3. Gameplay Loop * **Mechanic**: The game simulates 2D Newtonian physics ($F = G \frac{m_1 m_2}{r^2}$) in a 3D view (Top-down orthographic or high-angle perspective). * **Goal**: The player must launch a satellite into a **stable orbit** around the central planet. The satellite must survive for a specific duration (e.g., 10 seconds) or complete 3 full revolutions without crashing into the planet or flying off-screen. * **Difficulty ("Hard" & "Random")**: * Each level randomizes the size and density (gravity strength) of the central planet. * Later levels add multiple gravity sources (binary star systems) to create complex N-body problems. * **Win/Loss**: * **Loss**: Collision with planet surface or distance > max_distance. * **Win**: Orbit remains stable for the target duration. ### 4. Mobile Controls & Interaction * **Control Scheme (Slingshot/Drag-to-Shoot)**: * **Input**: Single-finger interaction. * **Action**: Touch and hold anywhere on the screen to spawn the satellite at that location. Drag finger away to pull back a "virtual rubber band" (visualized by an arrow vector indicating force and direction). Release finger to launch. * **Screen Orientation**: Portrait mode (optimized for one-handed play). * **Haptic Feedback**: Trigger a distinct vibration pattern when the satellite crashes or when a level is successfully completed. * **UI Layout**: * **Top Center**: "Stable Time" counter (large, readable font). * **Top Right**: A "Reset" icon (44x44px touch target) to instantly clear the current satellite and try again. * **Visual Feedback**: The vector arrow must change color (Green to Red) based on the launch power intensity. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Orbit is a captivating physics-based puzzle game that challenges players to master the complexities of orbital mechanics and planetary gravity. With a solid 3.6/5 rating from players, this space simulation offers an educational yet entertaining experience that combines scientific accuracy with engaging gameplay.

Inspired by real astronomical principles, Orbit lets you experience the fascinating world of celestial mechanics that once revolutionized our understanding of the universe. The game cleverly references how these heliocentric concepts would have been controversial in historical times, adding an educational dimension to the gaming experience.

Core Features

Realistic Physics Simulation

Experience authentic orbital mechanics with: - Accurate Gravitational Forces : Each celestial body exerts realistic gravitational pull - Dynamic Orbital Paths : Satellites follow realistic trajectory physics - Multiple Planetary Bodies : Navigate complex multi-body gravitational systems - Momentum Conservation : Launch angles and velocities directly affect orbital outcomes

Challenging Puzzle Mechanics

The game offers progressively difficult challenges: - Precision Launching : Perfect timing and angle calculations required - Strategic Planning : Analyze gravitational fields before each launch - Problem-Solving Skills : Multiple solutions possible for each orbital challenge - Progressive Difficulty : From simple circular orbits to complex elliptical trajectories

Educational Value

Learn real space science concepts: - Kepler's Laws : Experience orbital mechanics firsthand - Gravitational Physics : Understand action at a distance principles - Comet Behavior : Observe how celestial bodies interact - Space Navigation : Master the basics of spacecraft trajectory planning

Gameplay Mechanics

The core gameplay revolves around launching satellites into stable orbits around various celestial bodies. Players must carefully calculate launch vectors, considering:

  • Launch Velocity : Too fast and you'll escape orbit; too slow and you'll crash
  • Launch Angle : Determines the shape and orientation of your orbital path
  • Gravitational Wells : Multiple planets create complex force interactions
  • Orbital Stability : Achieve long-term stable orbits for maximum points

Operation Guide

Mouse Controls : - Click and Drag : Set launch direction and power - Release : Launch your satellite - Observe : Watch your orbital trajectory unfold

Strategy Tips : 1. Study the Field : Analyze all gravitational sources before launching 2. Start Small : Begin with gentle launches to understand the physics 3. Experiment : Try different angles and velocities to find optimal orbits 4. Learn from Failures : Each crash teaches valuable orbital mechanics lessons

Why Play Orbit

Perfect for Science Enthusiasts

If you're fascinated by space exploration and astronomy, Orbit provides an interactive way to understand the fundamental forces that govern our solar system. The game makes complex physics concepts accessible through hands-on experimentation.

Challenging Mental Exercise

This isn't just entertainment – it's a brain workout that develops: - Spatial Reasoning : Visualize three-dimensional orbital paths - Physics Understanding : Grasp fundamental force interactions - Problem-Solving : Find creative solutions to complex challenges - Patience and Precision : Master the art of careful calculation

Completely Free Experience

Enjoy full access to all features without any cost. No downloads required – simply open your browser and start exploring orbital mechanics immediately.

Cross-Platform Accessibility

Play on any device with a modern web browser, whether you're using a desktop computer, laptop, tablet, or smartphone.

Frequently Asked Questions (FAQ)