Agar.io - Multiplayer Cell Evolution Game

Seele01-Flash
By
Agar.io is the ultimate multiplayer cell evolution game where you start as a tiny cell and must consume smaller players to grow massive. Featuring multiple game modes and millions of players worldwide.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Agar.io Clone". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** 2.5D Minimalist Aesthetic. Use a top-down Orthographic Camera. The world should feature a clean white background with a subtle light-gray grid pattern (infinite tiling). * **Player & Enemies:** Render cells as `THREE.CircleGeometry` or flat cylinders. Assign random, high-saturation pastel colors to each new cell. Player cells must display a nickname centered in white or black text. * **Food:** Thousands of tiny, static colored dots scattered across the map. * **Viruses:** Green, spiky circular entities (can be represented by a gear shape or a circle with a jagged edge texture). * **Performance:** Use `THREE.InstancedMesh` for the background food dots to handle high object counts (1000+) without frame drops on mobile devices. Implement a simple culling system to only render entities within the camera's viewport. ### 2. Audio Requirements * **BGM:** A subtle, low-fidelity ambient electronic loop that is relaxing but creates slight tension. * **SFX:** * **Consumption:** A soft "bloop" or "pop" sound with varying pitch (lower pitch as the player gets larger). * **Split:** A quick "whoosh" or spring sound. * **Game Over:** A dull "squish" or shrinking sound. * **UI:** Crisp clicks for menu interaction. ### 3. Gameplay Loop * **Core Mechanic:** The player controls a cell that moves continuously towards the input direction. * **Growth Logic:** * Collision with "Food": Gain small mass (Radius increases slightly). * Collision with Smaller Cells: If Player Radius > Enemy Radius * 1.1, consume enemy and gain their mass. * Collision with Larger Cells: Game Over. * **Viruses:** If a player is larger than a virus and touches it, the player "explodes" into many small cells. Small players can hide inside viruses. * **Camera System:** The camera must smoothly center on the player. Crucially, **zoom out** progressively as the player's size increases to maintain a consistent field of view relative to the player's size. * **Movement Physics:** Larger cells move slower; smaller cells move faster. Movement should have slight inertia/damping for a fluid feel. ### 4. Mobile Controls & Interaction * **Movement:** Implement a **Dynamic Virtual Joystick**. Wherever the user touches on the left half of the screen becomes the center of the joystick. The cell moves in the direction of the drag. * **Action Buttons:** Place two distinct circular buttons on the bottom-right of the screen: * **Split Button:** Splits the player's cell into two, shooting one half forward (used to attack). * **Eject Mass Button:** Shoots a small piece of mass forward (used to feed teammates or bait enemies). * **UI Layout:** * **Top Right:** Simple Leaderboard (Top 5 names). * **Bottom Center/Left:** Current Score (Mass). * Ensure all UI elements remain clear of the safe area (notch/home bar) and respond to screen orientation changes (Force Landscape orientation for best gameplay, but UI should handle resize). * **Feedback:** Trigger a short, light vibration (using `navigator.vibrate`) when the player eats another player or splits. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Agar.io is one of the most popular multiplayer online games ever created, bringing together millions of players in a simple yet addictive cell evolution experience. In this fascinating MMO world, you control a small cell that must survive and grow by consuming smaller opponents while avoiding larger predators. The game's elegant simplicity combined with strategic depth has made it a global phenomenon.

With a solid rating of 3.2/5 from thousands of players, Agar.io continues to attract new players daily with its accessible gameplay and competitive multiplayer action. The game requires no downloads and runs perfectly in any modern web browser.

Core Features

Multiple Game Modes

Agar.io offers four distinct game modes to suit different playstyles:

  • Free For All (FFA) : The classic mode where every player fights for survival
  • Battle Royale : Intense matches with shrinking play areas
  • Teams : Collaborate with other players to dominate the arena
  • Experimental : Test new features and gameplay mechanics
  • Party Mode : Create private rooms to play with friends

Real-Time Multiplayer Action

Experience genuine multiplayer competition with players from around the world. The game features:

  • Live leaderboards showing top players in real-time
  • Instant matchmaking - jump into games within seconds
  • Global player base ensuring matches are always available
  • Smooth performance optimized for web browsers

Customization Options

Personalize your gaming experience with:

  • Custom skins and avatars using earned coins
  • Visual themes to change the game's appearance
  • Server selection for optimal connection
  • Graphics quality settings for different devices

Game Mechanics

Growth and Evolution System

The core gameplay revolves around a simple but engaging growth mechanism:

  • Consume smaller cells to increase your size and score
  • Avoid larger players who can eliminate you instantly
  • Strategic positioning becomes crucial as you grow
  • Risk vs reward decisions in every movement

Advanced Strategies

Mastering Agar.io requires understanding advanced mechanics:

  • Cell splitting to catch faster opponents or escape danger
  • Virus usage to break apart larger competitors
  • Team coordination in team-based modes
  • Map awareness to control territory effectively

Operation Guide

Basic Controls

  • Mouse movement : Direct your cell around the arena
  • Left click or spacebar : Split your cell to move faster or catch prey
  • W key : Eject mass to feed teammates or bait opponents
  • Enter key : Open chat to communicate with other players

Getting Started

  1. Choose your nickname - this appears on the leaderboard
  2. Select a game mode based on your preference
  3. Customize settings for optimal performance
  4. Start small and focus on collecting pellets and tiny cells
  5. Gradually target larger opponents as you grow
  6. Watch the leaderboard to track your progress

Pro Tips for Success

  • Start by eating the colored dots scattered around the map
  • Stay near the edges initially to avoid larger players
  • Use viruses strategically to split larger opponents
  • In team mode, coordinate with teammates for maximum effectiveness
  • Learn to split-kill smaller, faster opponents

Why Play Agar.io

Accessible Yet Competitive

Agar.io strikes the perfect balance between easy-to-learn mechanics and deep strategic gameplay. Anyone can start playing within seconds, but mastering the game takes considerable skill and practice.

Endless Replayability

With millions of players worldwide and constantly changing matches, no two games are ever the same. The dynamic nature of multiplayer competition ensures fresh challenges every time you play.

Free and Cross-Platform

Enjoy complete access to all game modes without any cost. The game works flawlessly on desktop computers, laptops, tablets, and smartphones through any modern web browser.

Social Gaming Experience

Whether playing with friends in Party Mode or competing against global players, Agar.io provides an engaging social gaming experience that brings people together through friendly competition.

Frequently Asked Questions (FAQ)