Pill Soccer

Seele01-Flash
By
Pill Soccer is a unique 3D sports game featuring pill-shaped characters competing in fast-paced soccer matches. Play solo against AI or challenge friends in 2-player mode with simple controls and exciting gameplay.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Pill Soccer 3D**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Characters (The Pills):** Use `THREE.CapsuleGeometry` to create the players. Player 1 (User) should be Blue/Cyan; Player 2 (CPU/Opponent) should be Red/Magenta. Add simple `THREE.BoxGeometry` shapes for "sunglasses" or "visors" to give them directionality and personality. * **The Ball:** A classic soccer ball style using `THREE.SphereGeometry`. Use a texture or a composed mesh of white and black pentagons if possible, or a simple high-contrast pattern to make rotation visible. * **The Arena:** A 2D side-scrolling perspective (orthographic or fixed perspective camera). The ground is green turf with white boundary lines. * **Background:** A low-poly stadium crowd (can be abstract colored static pixels) and a dark night sky with stadium lights (lens flare textures or glowing meshes). * **Mobile Optimization:** Use `MeshLambertMaterial` or `MeshToonMaterial` for performant lighting on mobile devices. Limit real-time shadows to just the characters and ball (blobs shadows are acceptable). ### 2. Audio Requirements * **BGM:** High-energy, fast-paced "Arcade Sports" style techno track. * **SFX:** * **Kick/Hit:** A "Thud" or "Boing" sound when the pill collides with the ball. * **Jump:** A cartoonish "Whoosh" rising sound. * **Goal:** A loud whistle followed by a crowd cheering effect. * **Win/Loss:** Short jingles. ### 3. Gameplay Loop * **Core Mechanism:** A 1v1 soccer match (Player vs CPU). The game is physics-based. The player moves the Pill character to push, headbutt, or block the giant soccer ball into the opponent's net. * **Physics Logic:** Utilize a physics engine (like Cannon.js or a simple custom verlet integration) where the ball has high bounciness. The "Kick" isn't magnetic; it is a sudden forward impulse applied to the player to strike the ball harder. * **Scoring:** Detect when the ball crosses the X-axis threshold of the goals. First to 5 goals wins, or highest score after 90 seconds. * **Power-up (Optional):** Every 15 seconds, a "Lightning" icon appears. Collecting it enlarges the player for 5 seconds. ### 4. Mobile Controls & Interaction * **Layout:** Landscape orientation is mandatory. * **Left Screen (Movement):** A virtual Joystick or two large transparent buttons (Left/Right arrows) for horizontal movement. * **Right Screen (Actions):** * **Jump Button (Large):** Applies upward force. * **Kick/Dash Button (Medium):** Applies a quick horizontal impulse in the facing direction (to hit the ball hard). * **Touch Feedback:** Add a subtle visual "pulse" on the UI buttons when pressed. If possible, trigger `navigator.vibrate(50)` on ball impact or goal. * **Camera Behavior:** The camera should smoothly follow the midpoint between the player, the ball, and the opponent, zooming out slightly if they get far apart, but keeping the Z-axis fixed. ### 5. Technical Constraints * Code should be contained in a single HTML file with embedded CSS/JS where possible (or use CDN links for Three.js and Cannon.js). * Ensure the canvas resizes correctly on mobile screen rotation. * Handle multi-touch input correctly (player must be able to move left and jump simultaneously). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Pill Soccer

Pill Soccer is an innovative 3D sports game that reimagines traditional soccer with adorable pill-shaped characters. This free browser-based game combines simple controls with fast-paced action, creating an addictive gaming experience that's perfect for quick matches or extended tournament play. The game's unique visual style and physics-based gameplay make every match unpredictable and entertaining.

Core Features

Unique 3D Pill Characters

Control charming pill-shaped players that move with realistic physics. Each character responds naturally to collisions and movements, creating hilarious and exciting moments during matches.

Multiple Game Modes

  • Quick Match : Jump straight into action with instant gameplay
  • Two-Player Mode : Challenge friends locally on the same device
  • Tournament Mode : Compete in full championship brackets
  • Single Player : Practice against intelligent AI opponents

Simple Yet Strategic Gameplay

While the controls are easy to learn, mastering the game requires skill and strategy. There's no dedicated kick button - instead, you push the ball with your character's body, making positioning and timing crucial for success.

Cross-Platform Browser Support

Play instantly in any modern web browser without downloads or installations. The game runs smoothly on desktop computers with optimized performance.

Gameplay Mechanics

Physics-Based Soccer Action

The game uses realistic physics where the strength of your push determines the ball's trajectory. Harder pushes send the ball flying toward the goal, while gentle touches allow for precise positioning.

Aerial Gameplay

Use the jump function strategically to head the ball into the goal or defend your net. Timing your jumps correctly can turn defense into offense in seconds.

Special Moves System

Each player has access to special moves that can change the game's momentum. Master these abilities to gain advantages during crucial moments.

Operation Guide

Single Player Controls

  • W or Up Arrow : Jump to head the ball or defend
  • A or Left Arrow : Move character left
  • D or Right Arrow : Move character right
  • S or Down Arrow : Push/kick the ball
  • K or Z : Activate special move

Two Player Controls

Player 1: - W = Jump - A = Move left - D = Move right - S = Push ball - Z = Special move

Player 2: - Up Arrow = Jump - Left Arrow = Move left - Right Arrow = Move right - Down Arrow = Push ball - K = Special move

Pro Tips for Success

  1. Practice positioning : Learn to anticipate where the ball will bounce
  2. Master defensive play : Sometimes staying back and protecting your goal wins matches
  3. Use momentum : Combine movement with pushing for more powerful shots
  4. Time your jumps : Aerial play can surprise opponents and create scoring opportunities

Why Play Pill Soccer

Instant Fun Factor

The game's charming visual style and physics-based gameplay create immediate entertainment. Whether you're playing for five minutes or an hour, each match delivers laughs and excitement.

Perfect for Social Gaming

Two-player mode makes this ideal for entertaining friends or family. The simple controls mean anyone can join in, regardless of gaming experience.

Skill Development

While easy to pick up, the game rewards practice and strategy development. Players can continuously improve their positioning, timing, and special move usage.

Free and Accessible

Completely free to play with no hidden costs or premium content. Simply open your browser and start playing immediately.

Regular Replay Value

Tournament mode and varying AI difficulty ensure that the game remains challenging and engaging over time. Each match feels fresh thanks to the dynamic physics system.

Frequently Asked Questions (FAQ)