Swing Monkey

Seele01-Flash
By
Swing Monkey is an addictive one-button physics game where you help a cute monkey swing through jungle obstacles to reach the finish line. Simple controls, challenging gameplay, completely free to play.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Swing Monkey". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Use a **2.5D Low-Poly Cartoon style**. The game runs on a 2D plane (X/Y axis) but uses 3D geometry. Use an **Orthographic Camera** to simulate the flat vector look of the reference image while maintaining 3D depth. * **Character**: A cute, simplified Monkey composed of primitive shapes (Sphere for head/body, capsules for limbs). The monkey should be brown with a lighter face. Add a "TrailRenderer" (ribbon effect) behind the monkey to visualize speed and momentum. * **Environment**: * **Background**: A parallax layered jungle background using flat-colored planes (dark green trees in back, lighter green bushes in front). * **Anchor Points**: Bright Orange Torus or Rings scattered in the air. They must pulsate slightly to indicate they are interactable. * **Finish Line**: A checkered vertical plane or a banner on the far right. * **Mobile Optimization**: Use simple materials (`MeshLambertMaterial` or `MeshToonMaterial`). Avoid complex shadows; use baked lighting or a simple DirectionalLight. Limit total polygon count for smooth 60FPS on mobile browsers. ### 2. Audio Requirements * **BGM**: A playful, tropical-themed loop featuring marimba, bongos, and a light flute melody. It should be upbeat and encourage rhythm. * **Sound Effects (SFX)**: * **Rope Shoot**: A quick "Thwip" sound when the rope extends. * **Hook Connect**: A satisfying wooden "Clack" or "Ding" when the rope attaches to an anchor. * **Swinging**: A wind "Whoosh" sound that modulates volume based on the monkey's angular velocity. * **Win**: A short triumphant jungle jingle. * **Fail**: A comedic "falling whistle" or cartoon slip sound when the monkey falls off-screen. ### 3. Gameplay Loop * **Core Mechanic**: Physics-based pendulum swinging. * **Start**: The monkey falls under gravity. * **Hook**: When the player touches the screen, the monkey shoots a rope to the **nearest available anchor point** within a specific radius. A constraint is created, turning the movement into a pendulum swing. * **Release**: When the player releases the touch, the rope disappears, and the monkey launches forward preserving its current momentum and velocity. * **Goal**: Swing from point to point to reach the finish line on the right side. * **Fail State**: If the monkey falls below the bottom screen threshold (into the "abyss"), the level resets. * **Physics Engine**: Use a simple physics implementation (like Cannon.js or a custom Verlet integration) to handle gravity, velocity, and rope tension. The swing must feel "elastic" and weighty, not rigid. ### 4. Mobile Controls & Interaction * **Input Scheme**: **One-Touch Control**. * **Touch Start / Mouse Down**: Shoot rope and hold to swing. * **Touch End / Mouse Up**: Release rope. * **Screen Adaptation**: The game must be **responsive**. While the screenshot suggests Landscape, the code should adapt the camera zoom (Orthographic size) based on `window.innerWidth / window.innerHeight` to support both Portrait and Landscape play. * **Visual Feedback**: * Draw a visible line (the rope) from the monkey's hand to the anchor when connected. * Highlight the "Target Anchor" (the one the monkey *would* hit if clicked now) with a white outline to help player timing. * **Haptics**: Trigger a short vibration (`navigator.vibrate(20)`) when the hook successfully connects to an anchor. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Swing Monkey is a delightfully simple yet challenging physics-based swinging game that captures the essence of momentum and timing. In this colorful jungle adventure, you control an adorable monkey who must swing from point to point using nothing but precise timing and physics. The game's minimalist one-button design makes it instantly accessible while providing surprisingly deep and engaging gameplay that will keep you coming back for more.

Core Features

Simple One-Button Controls

The beauty of Swing Monkey lies in its elegant simplicity. With just one mouse button, you control the entire swinging mechanism. Hold to grab onto swing points, release to let go - it's that simple! This accessibility makes it perfect for players of all ages and skill levels.

Physics-Based Gameplay

Experience realistic swinging physics that respond to momentum, gravity, and timing. Each swing feels natural and satisfying as you build up speed and navigate through increasingly challenging obstacle courses.

Colorful Jungle Environment

Immerse yourself in a vibrant jungle setting with lush green backgrounds, tropical plants, and charming visual design. The bright, cheerful graphics create an inviting atmosphere that appeals to casual gamers.

Progressive Challenge System

Start with simple swings and gradually face more complex obstacle arrangements. The difficulty curve is perfectly balanced to provide a sense of progression without frustrating newer players.

Cross-Platform Compatibility

Play seamlessly across all devices - desktop computers, laptops, tablets, and smartphones. The responsive design ensures smooth gameplay regardless of your screen size.

Gameplay Mechanics

The core objective is straightforward: guide your monkey character from the starting point to the finish line by swinging on designated anchor points. However, mastering the timing and momentum requires skill and practice.

Key Gameplay Elements: - Momentum Management : Build up speed for longer swings while controlling your trajectory - Obstacle Navigation : Avoid barriers and hazards scattered throughout each level - Precision Timing : Release at the perfect moment to achieve optimal swing arcs - Physics Mastery : Use gravity and momentum to your advantage

How to Play

Basic Controls: - Hold Left Mouse Button : Grab onto swing points and swing - Release Mouse Button : Let go to continue your momentum - Timing is Everything : Hold longer for bigger swings, release early for shorter ones

Pro Tips for Success: - Watch the swing points ahead and plan your trajectory - Use momentum to carry you through difficult sections - Don't rush - sometimes a shorter, controlled swing is better than a wild leap - Practice the timing on easier levels before tackling harder challenges

Why Play Swing Monkey

Perfect for Quick Gaming Sessions : Each level can be completed in minutes, making it ideal for short breaks or casual gaming moments.

Stress-Free Entertainment : The cheerful visuals and simple mechanics provide a relaxing gaming experience without complex rules or steep learning curves.

Skill Development : While easy to learn, the game helps develop hand-eye coordination, timing, and spatial awareness through its physics-based challenges.

Universal Appeal : Suitable for children, adults, and seniors alike, with no violent content or complex storylines to follow.

No Commitment Required : Play for 5 minutes or 50 minutes - the game saves your progress automatically and welcomes you back anytime.

Frequently Asked Questions (FAQ)