Braains.io - Zombie vs Human Survival Game

Seele01-Flash
By
Braains.io is a thrilling multiplayer IO game where you choose between being a brain-hungry zombie or a desperate human survivor. Battle in real-time with other players in an intense survival experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Braains.io - Top-Down Zombie Tag". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Low-poly, cartoonish aesthetic simulating a 2D vector look but rendered in 3D. Use an **Orthographic Camera** tilted slightly (approx 60 degrees) to provide a clear top-down tactical view. * **Map Design**: A procedurally generated or pre-defined "Farmhouse" layout. * **Walls**: Solid grey rectangular geometries with collision. * **Flooring**: Wood plank textures for interiors, green grass for exteriors. * **Furniture**: Movable objects (tables, sofas, crates) that act as physics-based barricades. Humans can push them; zombies are slowed by them. * **Characters**: * **Humans**: Cylinder/Capsule geometries with distinct colors (Blue/Red/Yellow) indicating clothing. * **Zombies**: Green Capsule geometries with arms extended forward (simple cuboids). * **Performance (Mobile)**: * Use `THREE.InstancedMesh` for rendering the swarm of zombies/humans to maintain 60 FPS on mobile devices. * Use simple Phong materials with a single directional light (casting shadows) and ambient light. Avoid complex PBR materials. ### 2. Audio Requirements * **BGM**: A "Cartoon Spooky" track—fast-paced, minor key, using pizzicato strings and xylophones to create a fun, frantic chase atmosphere (not terrifying, just urgent). * **Sound Effects (SFX)**: * **Infection**: A distinctive "Squish" or "Bite" sound followed by a pitched-down "Oh no!" when a human turns into a zombie. * **Zombie Moan**: Low-volume, random interval grunts for nearby zombies. * **Footsteps**: Rapid tapping sounds matching movement speed. * **Barricade Move**: Wood scraping sound when pushing furniture. ### 3. Gameplay Loop * **Phase 1: Preparation (10 Seconds)**: All players start as Humans. They must run to find hiding spots or move furniture to block doors. * **Phase 2: The Outbreak**: One random player turns into the "Alpha Zombie" (Dark Green). * **Phase 3: The Chase**: * **Infection Mechanic**: Simple collision detection. If a Zombie touches a Human, the Human immediately changes material color to Green, switches teams, and AI behavior changes to "Chase Nearest Human". * **AI Behavior**: * *Zombie AI*: Simple pathfinding (A* or steering behaviors) targeting the nearest visible Human. * *Human AI (Bots)*: Flee behavior from nearest Zombie; seek cover behind walls. * **Win Conditions**: * **Zombies Win**: Infect all humans before the timer (e.g., 2 minutes) runs out. * **Humans Win**: Survive until the timer runs out. ### 4. Mobile Controls & Interaction * **Movement**: A dynamic **Virtual Joystick** positioned on the bottom-left/center of the screen. The player character moves relative to the joystick angle. * **Action Button**: A large circular button (min 64x64px) on the bottom-right. * *Function*: Uses a held item or pushes a heavy object (barricade). * **Camera Logic**: Smoothly follow the player's character (Lerp) with a slight offset to keep the view centered on the action. * **Orientation**: Locked to **Landscape Mode** for a wider field of view. * **Feedback**: * Trigger `navigator.vibrate(200)` when the player is infected. * Flash the screen edges red when a zombie is in close proximity. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Braains.io is an exciting multiplayer survival IO game that puts you in the middle of a zombie apocalypse scenario. With a 3.8/5 rating from players, this free browser-based game offers a unique dual perspective where you can experience the thrill from both sides of the undead conflict.

Set in atmospheric farmhouse environments, the game creates an immersive survival experience where every decision matters. Whether you're stalking prey as a zombie or desperately trying to stay alive as a human, each match delivers heart-pounding action and strategic gameplay.

Core Features

Choose Your Side

The game's standout feature is its dual gameplay mechanics . You can: - Play as a Zombie : Hunt down humans in packs, use stealth and numbers to your advantage - Play as a Human : Survive against zombie hordes using weapons and quick thinking

Progression System

  • Earn Points : The longer you survive, the more points you accumulate
  • Unlock Weapons : Purchase new weapons and equipment with earned points
  • Upgrade Arsenal : Enhance your weapons for better performance
  • Multiple Strategies : Different approaches for zombie and human gameplay

Multiplayer Arena Combat

Braains.io delivers intense real-time multiplayer action where you compete against players worldwide. The arena-style gameplay keeps matches fast-paced and unpredictable, with constantly shifting dynamics as players switch between hunter and hunted.

Atmospheric Environment

The game features detailed farmhouse settings that create the perfect backdrop for zombie survival horror. The top-down view provides tactical awareness while maintaining the tension of not knowing what's around the corner.

Game Mechanics

Zombie Gameplay

As a zombie, your objectives include: - Hunt in Packs : Coordinate with other zombie players for successful attacks - Stealth Approach : Use the environment to ambush unsuspecting humans - Spread the Infection : Convert humans to expand your undead army - Tactical Movement : Position yourself strategically to cut off escape routes

Human Survival

Surviving as a human requires: - Weapon Management : Choose the right tools for different situations - Resource Conservation : Make every shot count in critical moments - Escape Planning : Always have an exit strategy when zombies approach - Team Coordination : Work with other survivors for better chances

Operation Guide

Mouse Controls : Use your mouse to navigate around the game environment. The simple control scheme ensures you can focus on strategy rather than complex button combinations.

Movement : Point and click or drag to move your character in any direction. Smooth movement mechanics allow for precise positioning during intense encounters.

Combat System : Automatic targeting system helps streamline combat, whether you're biting as a zombie or shooting as a human.

Why Play Braains.io

This game stands out in the crowded IO game market by offering genuine choice in gameplay style . Unlike many survival games that lock you into one role, Braains.io lets you experience both perspectives of the classic zombie scenario.

The progression system adds depth beyond simple survival, giving players long-term goals and rewards for skilled play. Each match feels meaningful as you work toward unlocking new weapons and upgrades.

Free-to-play accessibility means anyone can jump in immediately without downloads or installations. The HTML5 technology ensures smooth performance across different devices and browsers.

Perfect for players who enjoy: - Competitive multiplayer games - Zombie-themed entertainment - Strategic survival challenges - Quick, intense gaming sessions - Browser-based gaming convenience

Frequently Asked Questions (FAQ)