Braains.io - Zombie vs Human Survival Arena

Seele01-Flash
By
Braains.io is a thrilling multiplayer survival arena where you choose to be either a zombie hunting humans or a human fighting off zombie hordes. Earn points, unlock weapons, and survive as long as possible in this intense IO game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Braains.io". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** 2.5D Top-Down aesthetic (Orthographic Camera). Use a Low-poly, flat-shaded art style (Toon Shader or MeshLambertMaterial) to mimic the vector graphics of the original game but with 3D depth. * **Map Design:** A procedural or pre-designed "Farmhouse" layout containing multiple rooms, hallways, and exits to an outdoor grassy area. Walls should be static dark gray blocks; floors should be wood plank textures or beige tiles. * **Dynamic Objects:** Furniture (beds, tables, couches, crates) must be physics-enabled rigid bodies. They should be movable/pushable by players to create barricades. * **Characters:** * **Humans:** Simple capsule or cylindrical low-poly meshes with distinct colors (tan/peach skin tones). * **Zombies:** Same geometry as humans but with Green skin and slightly hunched animation posture. * **Alpha Zombie:** Slightly larger scale, distinct dark green or purple color. * **Mobile Optimization:** Use `InstancedMesh` for rendering the horde of characters to maintain 60FPS on mobile devices. Limit shadow casting to the main player and dynamic furniture only. ### 2. Audio Requirements * **BGM:** A "Spooky but Goofy" loop. Think Halloween-themed arcade music—upbeat, using pizzicato strings and xylophones, increasing in tempo during the last 30 seconds of the round. * **SFX:** * **UI:** crisp "Pop" sounds for button presses. * **Gameplay:** "Wood sliding/scraping" sound when pushing furniture. A distinct "Chomp/Squish" sound when a human is infected. Low-pitched groans for zombies. * **Alerts:** A siren or loud bell sound when the infection starts. ### 3. Gameplay Loop * **Phase 1: Preparation (15 seconds):** All players spawn as Humans. They must run into the house and push furniture against doors to barricade themselves. * **Phase 2: The Outbreak:** One random player turns into the "Alpha Zombie". * **Phase 3: The Infection:** * Zombies chase Humans. * **Collision Logic:** If a Zombie collides with a Human, the Human instantly transforms into a Zombie (changing color/team) and joins the horde. * Zombies have higher knockback power against furniture to break barricades. * **Victory Conditions:** * **Humans Win:** If at least one human survives until the timer (e.g., 2 minutes) runs out. * **Zombies Win:** If 100% of players are infected before time runs out. ### 4. Mobile Controls & Interaction * **Movement:** A floating Virtual Joystick on the bottom-left of the screen for 360-degree character movement. * **Orientation:** Game must be locked to **Landscape Mode**. * **Camera:** Smooth follow camera (lerp) centered on the player, with a slight lead in the direction of movement to see ahead. * **Action Buttons:** * **Right Side:** A large circular button (minimum 64px tap area) for interactions (e.g., "Sprint" with a cooldown, or "Attack" if weapons are implemented). * **Haptic Feedback:** Trigger a heavy vibration (400ms) if the player gets infected. Trigger a light vibration (50ms) when colliding with a wall or heavy furniture. * **UI Layout:** Minimalist HUD. Timer at top center. "Humans Left" counter at top left. All UI elements must be anchored to screen edges with safe-area insets. 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 free-to-play IO game that puts you in the middle of a zombie apocalypse survival arena. With a solid 3.8/5 rating from players, this multiplayer game offers a unique twist on the classic zombie survival genre by letting you choose your side in the ultimate battle between the living and the undead.

Set in a spooky farmhouse environment, you'll either hunt for human prey as a ravenous zombie or fight for survival as a desperate human trying to escape the zombie swarm. The choice is yours, and each path offers completely different gameplay experiences and strategies.

Core Features

Dual Gameplay Modes

The game's standout feature is its dual perspective system :

  • Play as a Zombie : Join the undead horde and hunt down human survivors. Use your zombie abilities to chomp down on as many humans as possible while avoiding their weapons.
  • Play as a Human : Arm yourself with various weapons and fight off waves of approaching zombies. Use strategy and quick reflexes to stay alive.

Progression and Upgrade System

  • Points-Based Rewards : The longer you survive, the more points you earn
  • Weapon Unlocks : Use earned points to purchase new weapons and equipment
  • Upgrade Mechanics : Enhance your weapons and abilities to become more effective
  • Survival Scoring : Your performance is measured by how long you can stay alive

Multiplayer Arena Action

Braains.io delivers authentic IO game experience with: - Real-time multiplayer battles with players from around the world - Dynamic farmhouse environment that creates strategic chokepoints and hiding spots - Fast-paced combat that keeps you on the edge of your seat - Leaderboard competition to see who survives the longest

Game Mechanics

Zombie Gameplay Strategy

When playing as a zombie, success depends on: - Moving strategically to corner isolated humans - Working with other zombie players to overwhelm human defenses - Avoiding human weapons while closing in for the kill - Using the environment to ambush unsuspecting survivors

Human Survival Strategy

As a human survivor, focus on: - Managing your weapons and ammunition effectively - Finding safe positions with good escape routes - Coordinating with other human players for group defense - Prioritizing high-value zombie targets to maximize points

Operation Guide

Braains.io features intuitive controls that are easy to learn:

  • Mouse Movement : Move your character around the game arena
  • Point and Click : Aim and use weapons (when playing as human)
  • Strategic Positioning : Use walls and obstacles for cover and tactical advantage

The game automatically handles most combat mechanics, allowing you to focus on strategy and positioning rather than complex control schemes.

Why Play Braains.io

Perfect for Quick Gaming Sessions

This browser-based game is ideal for: - Instant Action : No downloads required - jump straight into the zombie apocalypse - Short Sessions : Perfect for quick gaming breaks or longer survival challenges - Competitive Play : Test your skills against real players in intense survival scenarios

Unique Dual-Perspective Experience

Unlike most zombie games that force you into one role, Braains.io lets you experience both sides of the apocalypse. This creates incredible replay value as you develop different strategies and skills for each gameplay mode.

Free-to-Play Accessibility

Enjoy the full game experience without any upfront costs. The progression system keeps you engaged as you work toward unlocking better equipment and achieving higher survival scores.

Whether you're craving intense survival action or want to unleash your inner zombie, Braains.io delivers thrilling multiplayer combat that will keep you coming back for more brains!

Frequently Asked Questions (FAQ)