Snake vs Worms - Multiplayer Snake IO Game

Seele01-Flash
By
Snake vs Worms is an exciting multiplayer .io game where you control a snake competing against players worldwide to become the largest in the arena. Eat delicious food items and avoid other snakes to dominate the leaderboard.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Snake vs Worms - .io Style Arena". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Vibrant, cartoonish 3D aesthetic similar to "Slither.io" or "Snake.io". High contrast colors against a dark background. * **Player & Enemy Models**: * Snakes/Worms should be constructed using a "Head" mesh (sphere with eyes and a mouth) followed by a chain of body segments (spheres). * Implement **InstancedMesh** for body segments to ensure 60FPS performance on mobile devices when multiple long snakes are on screen. * The Player snake is Blue with light blue stripes (as seen in the reference). Enemy snakes should have random distinct colors (Red, Green, Yellow). * Facial expressions: Simple geometry or texture-based eyes that look in the direction of movement. * **Food Assets**: * Scattered collectibles should be low-poly geometric representations of food: Donuts (Torus), Cookies (Flattened Cylinders with dots), Cherries (Small spheres), and Pizza slices. * Glowing "Orbs" representing the remains of defeated snakes. * **Environment**: * A large, dark, tiled grid background (infinite scrolling illusion) to help the player gauge movement speed and scale. * World boundaries should be marked by a glowing red red-zone. ### 2. Audio Requirements * **BGM**: An energetic, looping arcade-style electronic track (upbeat and fast-paced) to maintain tension. * **Sound Effects (SFX)**: * **Eating**: A satisfying "pop", "crunch", or "bloop" sound with slight pitch variation to avoid repetition. * **Boost**: A "whoosh" or rushing wind sound when the speed boost is active. * **Collision/Death**: A distinct "crash" or digital disintegration sound. * **UI**: Soft clicks for buttons; a fanfare chime when reaching the top 10 on the leaderboard. ### 3. Gameplay Loop * **Core Mechanic**: The player controls a snake that constantly moves forward. The goal is to grow by eating food scattered on the map. * **Growth Logic**: Every piece of food eaten increases the score and adds segments to the snake's tail. * **Combat & Collision**: * **Victory**: If the player's head hits another snake's body, the player dies. If another snake's head hits the player's body, they die and turn into a pile of high-value glowing food (remains). * **Self-Collision**: The player *can* cross their own body without dying. * **Boost Mechanic**: Holding the boost button increases speed by 50% but slowly drains the snake's length/score (ejecting particles behind). * **Bot Logic**: Since this is a client-side implementation, simulate multiplayer by generating 10-20 AI bots that wander the map, seek food, and avoid collisions using simple raycasting or distance checks. * **Camera**: Top-down perspective that smoothly follows the player's head. As the snake grows larger, the camera should slightly zoom out (increase FOV or height) to show more of the arena. ### 4. Mobile Controls & Interaction * **Orientation**: Landscape mode (fullscreen). * **Touch Controls**: * **Movement**: A dynamic **Virtual Joystick** on the left half of the screen. The snake follows the angle of the joystick. * **Speed Boost**: A large, semi-transparent button on the bottom-right of the screen (icon: lightning bolt or arrows). Alternatively, support a "double-tap and hold" gesture on the right side of the screen. * **UI Layout**: * **Top-Left**: Current Score and Length. * **Top-Right**: Live Leaderboard showing the top 5 snakes (Player + Bots). * **Center Overlay**: "Game Over" modal with a large "Play Again" button (min-height 50px for touch accessibility) and final score. * **Feedback**: * Add a subtle **camera shake** upon death. * Add simple **haptic feedback** (using `navigator.vibrate` if available) when killing another snake or colliding. 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 modern twist on the classic snake gameplay. In this competitive online arena, you'll start as a tiny snake and work your way up to become the largest serpent by consuming various food items scattered throughout the battlefield. The game combines the nostalgic appeal of snake games with the excitement of real-time multiplayer competition.

The vibrant, colorful graphics feature appetizing food items like pizza slices, donuts, burgers, chocolate, cherries, and cookies that make your snake grow longer and stronger. What sets this game apart is the intense multiplayer aspect - you're not just playing against AI, but competing with real players from around the world in real-time battles.

Core Features

Multiplayer Arena Combat

Engage in intense real-time battles with players worldwide. The arena is constantly filled with opponents of varying sizes, creating dynamic and unpredictable gameplay where strategy matters as much as skill.

Extensive Customization System

Unlock numerous snake skins and background themes through the in-game shop and lucky wheel system. Create your own unique appearance or choose from dozens of pre-designed options to stand out in the arena.

Strategic Boost Mechanism

Use the speed boost feature strategically to outmaneuver opponents. This powerful tool allows you to quickly position yourself in front of enemy snakes, forcing them to crash into you while you consume their remains.

Progressive Growth System

Start small and grow progressively larger by consuming food and defeated opponents. The "start bigger" option allows experienced players to skip the vulnerable early stages and jump straight into more competitive gameplay.

Diverse Food Collection

Enjoy a wide variety of food items including pizza, burgers, donuts, chocolate, cherries, cookies, and drinks. Each food type contributes to your snake's growth, making the gameplay visually appealing and engaging.

Gameplay Mechanics

The core objective is simple yet challenging: grow your snake to the top of the leaderboard while avoiding elimination. You die instantly if your head touches another snake's body, making positioning and timing crucial for survival.

Survival Strategy : Never approach other snakes head-first. Instead, use strategic positioning and the boost feature to force opponents into colliding with your body.

Growth Strategy : Consume everything you can find - food items, power-ups, and the remains of defeated snakes all contribute to your growth.

Competitive Strategy : Use the boost wisely to cut off opponents and force collisions, but be careful not to trap yourself in the process.

Operation Guide

Movement Controls : - Mouse Cursor : Move your mouse to control snake direction - WASD Keys : Use W/A/S/D for directional control - Arrow Keys : Traditional arrow key navigation

Speed Boost : - Left Mouse Click : Quick boost activation - Space Bar : Alternative boost control - Shift Key : Additional boost option

Pro Tips : Master the boost timing to perform advanced maneuvers like quick turns and opponent trapping. Remember that boosting consumes your snake's length, so use it strategically.

Why Play Snake vs Worms

This game offers the perfect blend of nostalgia and modern competitive gaming. Unlike single-player snake games, the multiplayer aspect creates endless replayability - no two matches are ever the same. The intuitive controls make it accessible to newcomers, while the strategic depth keeps experienced players engaged.

The free-to-play model with cosmetic customization options means you can enjoy full gameplay without any paywall restrictions. Whether you're looking for a quick gaming session or hours of competitive play, Snake vs Worms delivers an engaging experience that's easy to learn but challenging to master.

The game runs smoothly in web browsers without downloads, making it perfect for gaming sessions at work, school, or anywhere with internet access. Join millions of players worldwide and prove you have what it takes to reach the top of the leaderboard!

Frequently Asked Questions (FAQ)