Knife.io - Battle Arena Game

Seele01-Flash
By
Knife.io is an intense battle arena game where players throw knives at enemies while dodging attacks to be the last survivor. Features both single-player and local multiplayer modes with fast-paced action.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Knife.io". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Use a **High-Contrast Toon/Cel-Shaded style**. The game should look like a vibrant cartoon. * **Characters**: Create low-poly "Chibi" style characters (large head, small body) using basic Three.js primitives (spheres, cylinders) to represent the "Pharaoh" (Gold/Blue) and "Ninja" (Black/Red) aesthetics seen in the reference. * **Weaponry**: Knives should be stylized low-poly models (simple flattened cones or stretched cubes) that **orbit** around the character's body in a rotating ring. * **Arena**: A large, circular battleground with a grid or tiled texture on the floor to help visualize movement speed. The background (skybox) should be dark with animated "lightning" textures or simple glowing geometric lines to mimic the intense energy of the screenshot. * **Performance Optimization**: Use **InstancedMesh** for the knives and environmental particles to handle high object counts on mobile processors. Limit shadow casting to the main player only. ### 2. Audio Requirements * **BGM**: A fast-paced, high-energy **Electro-Rock or Arcade Synthwave** track. It should feel competitive and urgent. * **Sound Effects (SFX)**: * *Throwing*: A sharp "Swish" or "Whoosh" air-cutting sound. * *Collision*: A metallic "Clang" or "Ting" when knives hit other knives. * *Hit/Damage*: A punchy "Thud" or squish sound when a character is hit. * *Collect*: A high-pitched "Ding" or magical chime when picking up new knives from the ground. ### 3. Gameplay Loop * **Core Mechanic**: The player starts with a small ring of rotating knives (defensive shield). * **Collection**: Scattered across the arena are loose knives. Moving over them adds them to the player's rotating ring (increasing ammo/shield). * **Combat**: * **Orbit Mode**: Knives automatically rotate around the player. If an enemy touches the ring, they take damage. * **Throw Mode**: The player can "shoot" a knife from their ring forward. This reduces the count of orbiting knives. * **Elimination**: If a player (or bot) runs out of health, they "explode" into a pile of loose knives that others can collect. * **Victory Condition**: Battle Royale style—be the last survivor in the arena against AI bots. ### 4. Mobile Controls & Interaction * **Screen Orientation**: **Landscape Mode** (Critical for arena visibility). * **Movement (Left Hand)**: Implement a **Dynamic Virtual Joystick** on the left half of the screen. It should appear wherever the user touches to accommodate different hand sizes. * **Attack (Right Hand)**: A large, semi-transparent **"Throw" Button** (min 60x60px) on the bottom right. Tapping it shoots a knife in the direction the character is facing. * **Feedback**: * **Haptic Feedback**: Trigger a short vibration (`navigator.vibrate(20)`) when the player hits an enemy or gets hit. * **Visual Feedback**: Screen shake (camera jitter) on impact. * **UI Layout**: Keep score/kill count in the top-center. Health bar floating directly above the 3D character model. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Knife.io is a thrilling fast-paced battle arena game that combines skill, strategy, and quick reflexes in an epic knife-throwing showdown. In this exciting .io game, your mission is straightforward yet challenging: eliminate all opponents by throwing knives while dodging their deadly attacks to become the ultimate survivor.

The game features vibrant 2D graphics with distinctive character designs, including a pharaoh-like warrior and a mysterious ninja, each surrounded by spinning knives that serve as both weapons and shields. The arena setting creates an intense atmosphere where every move counts and split-second decisions determine victory or defeat.

Core Features

Dual Game Modes

  • Single Player Mode : Face AI opponents in challenging battles that test your knife-throwing skills
  • Local Multiplayer Mode : Battle friends head-to-head on the same device for ultimate bragging rights

Fast-Paced Combat System

Knife.io delivers adrenaline-pumping action with its intuitive combat mechanics. Players can move freely around the arena while launching knives at opponents. The key to success lies in mastering the balance between offense and defense - knowing when to attack and when to dodge incoming projectiles.

Competitive Arena Gameplay

The battle arena format ensures constant action and excitement. As players eliminate opponents, the tension builds until only one fighter remains standing. This survival-style gameplay keeps every match engaging from start to finish.

Accessible Browser Gaming

As a true .io game, Knife.io requires no downloads or installations. Simply open your browser and jump straight into the action. The game runs smoothly on both desktop and mobile devices, making it perfect for quick gaming sessions anywhere.

Gameplay Mechanics

The core gameplay revolves around strategic positioning and precise timing. Players must navigate the arena while managing their knife attacks and defensive maneuvers. Each character is surrounded by a circle of knives that automatically rotate, creating both offensive and defensive capabilities.

Success in Knife.io requires mastering movement patterns, predicting enemy actions, and timing attacks perfectly. The simple yet deep mechanics make it easy to learn but challenging to master, ensuring long-term replay value.

Operation Guide

Single Player Controls

  • Movement : Use WASD keys or move with left mouse button
  • Attack : Press Space bar or Left Mouse Button (LMB) to throw knives
  • Strategy : Combine movement and attacks to outmaneuver opponents

Two Player Local Multiplayer

  • Player 1 : WASD for movement, Space for attacks
  • Player 2 : Arrow keys for movement, L key for attacks
  • Objective : Be the first to eliminate your opponent in head-to-head combat

The controls are designed for maximum responsiveness, allowing players to execute complex maneuvers and combos with ease. The dual control scheme for multiplayer ensures both players have comfortable access to all game functions.

Why Play Knife.io

Knife.io stands out in the crowded .io game market with its unique blend of skill-based combat and strategic gameplay. The game offers immediate entertainment value with no learning curve barriers, while providing depth for players who want to master advanced techniques.

The local multiplayer feature makes it perfect for social gaming, whether you're competing with friends or family members. The fast match duration means you can enjoy multiple rounds in a short gaming session, making it ideal for breaks or casual play.

For fans of battle arena games, competitive multiplayer experiences, or classic .io gameplay, Knife.io delivers an engaging experience that keeps players coming back for more intense knife-throwing action.

Frequently Asked Questions (FAQ)