Golfparty.io - Online Multiplayer Mini Golf

Seele01-Flash
By
Golfparty.io is a thrilling online multiplayer mini golf game where players race to be the first to sink their ball through challenging obstacle courses. Compete with friends and players worldwide in this fast-paced, skill-based golf experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Golfparty.io". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Create a vibrant, Low-Poly 3D aesthetic similar to the screenshot. The palette should be high-saturation: bright green turf, reddish-brown wooden borders, and a clear blue sky. * **Models:** * **Golf Ball:** A sphere with a normal map simulating "dimples." Implement multiple color variants (Red, White, Blue) to represent different players. * **Course:** A modular tile-based system. Includes straight pieces, corners, and ramps. The borders must be raised to keep the ball in play (unless it's a "cliff" hazard). * **Decorations:** Simple low-poly pine trees and festive bunting flags strung between wooden posts (as seen in the image). * **Visual Effects:** Implement a "Speed Line" effect (trail renderer or stretched particle system) that appears behind the ball when velocity is high, exactly like the screenshot. * **Mobile Optimization:** Use `BoxGeometry` and `CylinderGeometry` primitives where possible to keep draw calls low. Use a single DirectionalLight with soft shadows and an AmbientLight. Limit the viewing distance with simple fog to save rendering resources. ### 2. Audio Requirements * **BGM:** A looping, upbeat, "summer party" style track (Synth-pop or light Funk) that conveys energy and competition. * **Sound Effects (SFX):** * **Impact:** A satisfying "thwack" or "click" when the club (or impulse) hits the ball. * **Collision:** Wooden "clunk" sounds when hitting walls. * **Movement:** A rolling loop sound that changes pitch based on ball velocity. * **Success:** A distinct "rattle" and "cheer" sound when the ball enters the cup. * **UI:** Soft "pop" sounds for button presses. ### 3. Gameplay Loop * **Core Mechanic:** The game is a racing mini-golf simulator. The player must get their ball from the Tee to the Hole in the fewest strokes *and* the shortest time. * **Multiplayer Simulation:** Since this is an .io style game, generate 2-3 AI-controlled "Bot" balls that race alongside the player to create competitive pressure. * **Physics:** Use a physics engine (like Cannon.js or Ammo.js integrated with Three.js). The ball should have drag (friction) on the grass so it stops naturally, but bounce elastically off wooden walls. * **Hazards:** * **Cliffs:** Areas without walls where the ball can fall off. If the ball Y-position drops below a threshold, respawn at the previous shot location with a penalty. * **Sand Traps:** High-friction zones that slow the ball drastically. * **Win Condition:** Reaching the hole (collision with the cup sensor). Display a "Hole in One!" or score summary UI upon completion. ### 4. Mobile Controls & Interaction * **Input Method (Slingshot Mechanic):** * **Touch Start:** Tap anywhere on the screen to initiate aiming. * **Touch Move (Drag):** Dragging *backward* acts like pulling a slingshot string. * **Visual Feedback:** Render an arrow or a trajectory line extending from the ball in the *opposite* direction of the drag. The arrow stretches to indicate power and rotates to indicate direction. Change the arrow color from Green (soft) to Red (max power). * **Touch End:** Release the finger to apply impulse to the ball based on the drag vector. * **Camera:** Implement a smooth "Follow Camera" that trails the ball. When the ball stops, the camera should automatically re-center behind the ball, ready for the next shot. * **Orientation:** Force Landscape mode for a wider field of view, or ensure the UI scales correctly if Portrait is used. * **Haptic Feedback:** Trigger a short vibration (`navigator.vibrate`) when the ball hits a wall or falls into the hole. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Golfparty.io is an exciting online multiplayer mini golf game that combines the precision of traditional golf with the competitive excitement of racing. In this colorful 3D environment, players compete against each other to see who can navigate their golf ball through increasingly challenging courses and reach the hole first.

The game features vibrant, cartoon-style graphics with festive decorations including colorful bunting and playful course designs. Each level presents unique obstacles, traps, cliffs, and contraptions that test your aiming skills and strategic thinking.

Core Features

Multiplayer Competition

Race against other players in real-time multiplayer matches. The thrill comes not just from completing each hole, but from being faster and more efficient than your opponents.

Skill-Based Gameplay

Success in Golfparty.io requires both precision and speed. You'll be scored based on the number of shots you take and how quickly you complete each level. Master the perfect balance between careful aiming and swift execution.

Diverse Obstacle Courses

Each level features creative obstacles and challenges: - Traps and hazards that can redirect your ball - Cliffs and elevation changes - Moving contraptions and mechanisms - Narrow pathways requiring precise shots - Bouncing surfaces and curved paths

Cross-Platform Accessibility

Play instantly on any device - desktop computers, smartphones, or tablets. No downloads required, just open your browser and start playing.

Gameplay Mechanics

The objective is simple but challenging: get your golf ball into the hole using as few shots as possible while racing against other players. The game combines traditional mini golf mechanics with competitive multiplayer elements.

Strategic Elements

  • Shot Planning : Analyze the course layout before taking your shot
  • Power Control : Adjust shot intensity based on distance and obstacles
  • Angle Precision : Fine-tune your aim to navigate through tight spaces
  • Speed vs Accuracy : Balance quick shots with careful planning

Operation Guide

Basic Controls

  • Aim : Hold down your mouse button or tap and hold on mobile to start aiming
  • Set Power : Drag backward to increase shot intensity - the further you drag, the more powerful your shot
  • Direction : Aim left or right to change the ball's direction
  • Shoot : Release to take your shot

Pro Tips for Better Performance

  • Take a moment to study each course before your first shot
  • Use lighter taps for precise movements near the hole
  • Learn how balls bounce off different surfaces
  • Watch other players' strategies and adapt your approach
  • Practice power control to avoid overshooting targets

Why Play Golfparty.io

Perfect for Social Gaming

Invite friends to join your golf party and compete in friendly matches. The multiplayer format makes every game unpredictable and exciting, as you never know what creative shots your opponents might attempt.

Quick and Accessible

Each round is fast-paced, making it perfect for quick gaming sessions. Whether you have 5 minutes or an hour, you can jump in and enjoy competitive mini golf action.

Skill Development

Improve your spatial reasoning, precision, and strategic thinking as you master increasingly complex courses. The game rewards both careful planning and quick reflexes.

Free Entertainment

Enjoy hours of entertainment without any cost. The game is completely free to play with no hidden fees or premium content restrictions.

Community Competition

Join a global community of mini golf enthusiasts. Each match brings new opponents with different playing styles, keeping the gameplay fresh and challenging.

Frequently Asked Questions (FAQ)