Snake vs Worms - Multiplayer .io Snake Game

Seele01-Flash
By
Snake vs Worms is an addictive multiplayer .io game where you control a snake and compete to become the largest in the arena by eating delicious foods while avoiding other players.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Snake vs Worms (.io Style)**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** 2.5D Cartoon Arcade style. High contrast colors against a dark background (Hex #1a1a2e or similar deep void color). * **Player & Enemies:** * The "Snake/Worm" should be constructed using a series of `SphereGeometry` meshes following a head mesh. * The **Head** needs distinct features (simple eyes composed of smaller spheres) so players know which end is dangerous. * **Colors:** The player should be bright Blue (cyan/azure). Enemy AI bots should have randomized neon colors (Red, Green, Purple). * **Glow Effect:** Apply a slight emissive material to the snake bodies to make them pop against the dark background. * **Food Items:** Scattered throughout the arena. Use simple geometric primitives (small Torus for donuts, flattened Spheres for cookies, small red spheres for cherries). * **Arena:** A large, tiling dark grid texture (generated procedurally with canvas or grid helper) to provide speed reference. * **Mobile Optimization:** Use `InstancedMesh` for the food items to maintain high FPS on mobile devices. Limit body segment smoothness (LOD) to ensure performance on phones. ### 2. Audio Requirements * **BGM:** A fast-paced, looped "Chip-tune" or "Casual Synth-pop" track. It should feel energetic but not annoying. * **SFX:** * **Eating:** A satisfying "Pop" or "Crunch" sound (high pitch) when consuming food. * **Boost:** A continuous "Whooshing" wind sound when the player speeds up. * **Death:** A "Glass breaking" or "Spring recoil" sound when a snake crashes. * **UI:** Soft clicks for menu buttons. ### 3. Gameplay Loop * **Core Mechanics:** * **Growth:** The player starts small. Eating food increases the score and adds segments to the snake's tail length. * **Movement Logic:** The head moves constantly forward. The body segments must follow the head's path smoothly using linear interpolation (Lerp), creating a slithering effect. * **Bot AI:** Generate 5-10 AI snakes that wander the map. They should have basic collision avoidance logic but occasionally make mistakes. * **Combat & Death:** * **Rule:** If a snake's **Head** collides with another snake's **Body**, the snake with the colliding head dies. * **Loot:** When a snake dies, its body should turn into a long chain of high-value food particles (glow brighter) for others to eat. * **Boost:** Holding the boost button increases speed by 50% but slowly decreases the snake's length (score). * **Win Condition:** There is no end. The goal is to reach the #1 spot on a simple on-screen leaderboard. ### 4. Mobile Controls & Interaction * **Control Scheme (Virtual Joystick):** * Implement an **Invisible Dynamic Joystick** on the left half of the screen. Wherever the user touches and drags, that becomes the center of control. The snake turns relative to the angle of the drag. * **Action Button:** * A large, translucent **"Boost" button** (icon of a lightning bolt) on the bottom-right corner of the screen. * Interaction: Hold to boost, release to return to normal speed. * **Camera:** * Top-down Orthographic or Perspective camera. * The camera must smoothly follow the Player's Head, keeping it centered but allowing a slight lead in the direction of movement so the player can see what's ahead. * **UI Layout:** * **Top-Right:** Mini Leaderboard (Top 3 names + Player Rank). * **Top-Left:** Current Score / Length. * **Center Screen (On Death):** A "Game Over" modal with a large, touch-friendly "Restart" button (min-height 50px). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Snake vs Worms

Snake vs Worms is a thrilling multiplayer .io game that puts a delicious twist on the classic snake gameplay. In this colorful online arena, you start as a tiny snake and must eat your way to the top of the leaderboard. The game features vibrant graphics, smooth controls, and endless competitive fun as you battle other players from around the world.

Core Features

Multiplayer Arena Combat

Compete against real players in real-time multiplayer battles. The arena is filled with hungry snakes all trying to become the biggest, creating intense and unpredictable gameplay moments.

Delicious Food Collection

Unlike traditional snake games, Snake vs Worms features a mouth-watering variety of foods to consume: - Pizza slices for substantial growth - Burgers and sandwiches for quick size boosts - Chocolate and sweets for energy - Cookies and donuts scattered throughout the arena - Cherries and fruits for healthy snacking - Leftover snake remains from defeated players

Customization System

Personalize your snake with the extensive customization options: - Unlock awesome snake skins through gameplay - Change background themes to match your style - Create custom skins with the built-in editor - Visit the Lucky Wheel for random rewards - Browse the Shop for premium cosmetics

Strategic Gameplay Elements

  • Boost system for quick acceleration and tactical maneuvers
  • Head-to-head combat where touching another snake's head means death
  • "Start Bigger" option to skip the vulnerable newborn phase
  • Leaderboard competition to track your progress against other players

Game Controls

Mastering the controls is essential for survival and dominance:

  • Movement : Use your mouse cursor, WASD keys, or arrow keys to guide your snake
  • Speed Boost : Left mouse click, Space bar, or Shift key for quick acceleration
  • Strategic Positioning : Use boost to cut off other snakes and force them to crash into you

Winning Strategies

Survival Tactics

  • Always avoid head-on collisions with other snakes
  • Use the arena edges strategically for protection
  • Stay alert and never get trapped in corners
  • Watch for opportunities when larger snakes are distracted

Growth Optimization

  • Prioritize high-value foods like pizza and burgers
  • Collect snake remains from defeated players for massive growth
  • Balance aggressive play with safe positioning
  • Use the boost feature wisely - it can save your life or help you eliminate others

Why Play Snake vs Worms

Snake vs Worms offers the perfect blend of nostalgic snake gameplay and modern multiplayer competition. The game is completely free to play, requires no downloads, and runs smoothly in any web browser. Whether you're looking for a quick gaming session or want to climb the leaderboard rankings, this .io game delivers addictive gameplay that keeps you coming back for more.

The vibrant food-themed graphics and smooth animations create an engaging visual experience, while the real-time multiplayer action ensures every game feels fresh and challenging. With customization options and strategic depth, Snake vs Worms appeals to both casual players and competitive gamers alike.

Frequently Asked Questions (FAQ)