Agar.io - The Original .io Cell Evolution Game

Seele01-Flash
By
Agar.io is the legendary .io game that started it all. Control a simple cell in a multiplayer arena, eat smaller players to grow larger, and avoid being consumed by bigger opponents in this addictive survival game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Agar.io: Cellular Survival**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Minimalist, clean 2D vector style rendered in a 3D context (orthographic camera looking down). The background should be a light gray grid (graph paper style) on a white canvas. * **Player & Enemies**: Render cells as perfect circles using `THREE.CircleGeometry` or simple shaders for smooth edges. * **Colors**: Random vibrant, high-saturation colors for players (Cyan, Magenta, Lime Green, Bright Red). * **Borders**: Each cell needs a slightly darker outline of its fill color to distinguish it from the background. * **Names**: Render text centered on the cell (use a simple sprite or canvas texture). * **Food (Pellets)**: Tiny, static colored hexagons or circles scattered abundantly across the map. * **Viruses**: Green, spiky circles (can use a custom shader or a jagged polygon geometry) that remain stationary. * **Optimization (Mobile)**: * Use **InstancedMesh** for the background grid and the hundreds of food pellets to reduce draw calls. * Limit the visible viewport (fog or culling) so the phone doesn't render off-screen entities. * Keep polygon counts low; texture usage should be minimal (procedural generation preferred). ### 2. Audio Requirements * **BGM**: A calm, repetitive, "science-lab" style ambient electronic track. Think soft synthesizers, low tempo (80-90 BPM), unobtrusive loops that encourage focus. * **Sound Effects (SFX)**: * **Pop/Bloop**: High-pitched, soft "bloop" sound when eating small pellets. * **Absorption**: A deeper, liquid "gulp" sound when eating another player. * **Split**: A swift "whoosh" or "snap" air sound when splitting. * **Bounce**: A soft elastic thud when hitting a virus (if not big enough to explode). * **Game Over**: A descending electronic scale or "wither" sound effect. ### 3. Gameplay Loop * **Core Mechanic**: The player controls a cell that moves continuously towards the input pointer. * **Growth Logic**: * Eat small pellets -> Gain +1 Mass. * Eat smaller players (must be < 90% of your size) -> Gain their Mass. * Movement speed scales inversely with Mass (bigger = slower). * Camera zoom scales inversely with Mass (bigger = camera zooms out to see more area). * **Split Mechanic**: Triggering "Split" divides the player into two cells of half mass, launching the new half forward to catch enemies. * **Virus Mechanic**: * If Mass < Virus Mass: You pass through safely (hiding spot). * If Mass > Virus Mass: Touching it causes the player to explode into many tiny cells (vulnerable state). * **Win/Loss**: * **Loss**: Being eaten completely by a larger cell. Show "Game Over" and final mass score. * **Leaderboard**: Real-time display of the top 5 biggest masses in the corner. ### 4. Mobile Controls & Interaction * **Primary Movement (Touch)**: * **Virtual Analog Stick**: Invisible or subtle floating joystick logic. Touching anywhere on the screen sets the center; dragging determines the direction. The cell moves toward the touch point. * **Relative Control**: The further the finger is from the initial touch point, the "harder" the pull (though speed is maxed by physics), allowing for precise turns. * **Action Buttons (UI)**: * Place large, translucent buttons in the bottom-right corner (thumb reachable). * **Split Button**: Icon showing a cell dividing. (Triggers spacebar logic). * **Eject Mass Button**: Icon showing a small dot shooting out. (Triggers 'W' logic). * **Orientation**: Locked to **Landscape Mode** for a wider field of view. * **Feedback**: * **Haptic**: Short vibration pulse when eating a player or splitting. * **Visual**: A subtle "wobble" shader effect on the cell membrane when changing direction quickly or absorbing mass. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Agar.io

Agar.io is the groundbreaking multiplayer game that launched the entire .io gaming phenomenon. In this deceptively simple yet strategically complex game, you start as a tiny cell in a vast arena filled with colorful pellets and other players. Your mission is straightforward: grow bigger than everyone else while avoiding becoming someone else's meal.

What makes Agar.io truly special is its perfect balance of simplicity and depth. While anyone can learn the basics in minutes, mastering the game requires patience, strategy, and quick thinking. The game has captivated millions of players worldwide and became Google's most-searched video game in 2015.

Core Features

Pure Multiplayer Competition

Every match puts you against real players from around the world in real-time battles. No bots, no artificial intelligence - just pure human competition where every opponent thinks, strategizes, and reacts like you do.

Multiple Game Modes

Choose your preferred style of play: - Free For All (FFA) : Classic every-player-for-themselves gameplay - Battle Royale : Survive in a shrinking arena with increasing pressure - Teams : Coordinate with teammates to dominate opposing teams - Experimental : Advanced gameplay with mass donation mechanics

Strategic Depth

Despite its simple appearance, Agar.io offers surprising strategic complexity. Learn to use viruses as shields, master the art of cell splitting, and develop tactics for different situations. Family players often discover collaborative strategies, working together in packs to hunt larger opponents.

Cross-Platform Accessibility

Play instantly in your web browser or download the official mobile apps for iOS and Android. No downloads required for browser play - just visit the site and start growing immediately.

Game Mechanics

The Growth System

Your cell grows by consuming pellets scattered across the map and absorbing smaller players. The larger you become, the slower you move, creating natural balance between size and agility. This core mechanic ensures that even the biggest players remain vulnerable to coordinated attacks from smaller, faster opponents.

Cell Splitting Strategy

Use the space key to split your cell in half, launching one piece forward to catch fleeing prey. This high-risk, high-reward mechanic can secure kills just out of reach, but leaves you temporarily vulnerable with smaller, separate cells.

Virus Utilization

Green virus cells serve multiple strategic purposes. Small players can hide behind them for protection, while larger cells can shoot mass into viruses to explode them toward enemies, splitting large opponents into vulnerable fragments.

How to Play

Starting Strategy

Begin by quietly collecting pellets around the map's edges. Avoid other players initially - most beginners get eaten by rushing into combat too early. Focus on steady, safe growth until you reach sufficient size to hunt other cells.

Combat Tactics

Once you've grown to medium size, start targeting smaller players. Always ensure your target is significantly smaller than you - even after splitting, your pieces must be large enough to consume the prey completely.

Advanced Techniques

Experienced players learn to trap opponents against map borders, use viruses offensively, and coordinate with other players for mutual benefit. The most successful strategies combine patience, positioning, and perfect timing.

Why Play Agar.io

Agar.io offers an incredibly accessible yet endlessly engaging gaming experience. Whether you have five minutes or five hours, each session provides unique challenges and opportunities. The game's simple controls mask deep strategic gameplay that rewards both quick reflexes and careful planning.

The social aspect adds another dimension - players often form temporary alliances, engage in epic battles, and experience the thrill of climbing leaderboards against real opponents. It's a perfect introduction to competitive online gaming that appeals to players of all ages and skill levels.

With no payment required and instant browser access, Agar.io removes all barriers between you and addictive multiplayer competition. Start small, think big, and discover why millions of players worldwide have fallen in love with this simple yet brilliant game.

Frequently Asked Questions (FAQ)