Knife - Stick Figure Fighting Game

Seele01-Flash
By
Knife is an intense stick figure fighting game where players battle with knives in a survival arena. Only one warrior can remain standing in this fast-paced combat experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Knife: Stickman Arena". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: 3D Minimalist "Stick Figure" aesthetic. * **Characters**: Construct the Player and Enemy characters using simple geometric primitives (Spheres for joints/head, Cylinders for limbs) grouped into a rigid hierarchy. The Player should be distinct (e.g., Black body, Blue headband) from Enemies (Red body). * **Weapons**: The "Knife" is the core asset. It should look like a low-poly combat dagger with a metallic Grey shader and a Brown handle. * **Environment**: An infinite or enclosed grid arena (e.g., a bright Dojo floor or a Tron-like grid) to provide high contrast against the stick figures. Background should be a solid color or simple gradient skybox to reduce rendering load. * **VFX**: Simple particle explosions (red cubes) when a character takes damage. A white "trail" renderer attached to the knife when thrown. * **Optimization**: Use `THREE.BoxGeometry` and `THREE.CylinderGeometry` with shared materials to minimize draw calls. Avoid complex shadows; use simple blob shadows under characters. ### 2. Audio Requirements * **BGM**: High-tempo, adrenaline-pumping breakbeat or rock loop to match the fast fighting pace. * **SFX**: * **Stab**: A sharp "Swish" sound when swinging, and a fleshy "Thud" or "Splat" on impact. * **Throw**: A "Whoosh" sound for the projectile launch. * **Block/Parry**: A metal "Clang" if two knives hit each other. * **Death**: A dramatic "Wilhelm scream" or a grunt. ### 3. Gameplay Loop * **Core Mechanics**: * **Movement**: Player moves on the X/Z plane. * **Melee (Stab)**: Short-range attack. If the enemy is within distance $d$ and angle $\theta$, deal damage. Play a quick lunging tween animation. * **Ranged (Throw)**: Instantiates a Knife projectile moving forward. If it hits an enemy, it deals high damage but the player is "disarmed" for 2 seconds (cannot attack) until a new knife spawns in hand. * **Enemy AI**: Simple state machine: Move towards Player -> Stop at attack range -> Randomly choose to Stab or Throw -> Retreat cooldown. * **Win/Loss**: * **Win**: Defeat waves of enemies (Wave 1 = 1 enemy, Wave 2 = 2 enemies, etc.). * **Loss**: Player HP reaches 0. * **Ragdoll**: Upon death, the character mesh should simply rotate 90 degrees on the X-axis to simulate falling over. ### 4. Mobile Controls & Interaction * **Screen Orientation**: **Landscape** (Fixed). * **Controls**: * **Left Screen**: Virtual Joystick (Visual feedback: a translucent circle that follows the thumb) for 360-degree movement. * **Right Screen**: Two distinct buttons. * **Big Button (A)**: "Stab" action. * **Smaller Button (S)**: "Throw" action (include a cooldown radial fill visual). * **Camera**: Isometric Top-Down view (approx 60 degrees) that smoothly follows the player with a slight delay (Lerp) to prevent motion sickness. * **Feedback**: * **Haptic**: Trigger `navigator.vibrate(50)` on successful hits or when taking damage. * **UI**: Floating damage numbers (billboards) that pop up and fade out near the hit location. 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 is a thrilling stick figure action game that puts you in the middle of an intense knife-fighting arena. In this brutal survival battle, stick figures armed with deadly knives face off against each other with only one goal: be the last one standing. The game combines simple controls with strategic combat, creating an addictive fighting experience that keeps players coming back for more.

This free online game delivers pure adrenaline-pumping action without any complicated mechanics. Just you, your knife, and the determination to survive in the ultimate stick figure showdown.

Core Features

Intense Knife Combat System

Experience visceral stick figure battles where every move counts. The game features a unique combat system that allows both close-range stabbing and long-range knife throwing, giving players multiple strategic options in combat.

Simple Yet Strategic Gameplay

  • Easy to Learn : Master the controls in seconds with intuitive arrow key movement
  • Hard to Master : Develop advanced tactics for timing attacks and dodging enemies
  • Fast-Paced Action : Quick rounds keep the excitement high and the action continuous
  • Survival Mode : Fight until only one stick figure remains standing

Free Browser Gaming

Play instantly without downloads, installations, or account creation. The game runs smoothly on all modern web browsers, making it accessible anywhere you have an internet connection.

Minimalist Art Style

The clean stick figure graphics focus your attention on the action, ensuring smooth performance while delivering clear, readable combat visuals.

Gameplay Mechanics

Knife offers two primary combat methods that create diverse tactical opportunities:

Melee Combat : Get up close and personal with direct knife attacks. Timing and positioning are crucial as you attempt to outmaneuver your opponents while avoiding their deadly strikes.

Ranged Attacks : Throw your knife at distant enemies for surprise attacks. This risky move can eliminate threats from afar but leaves you temporarily weaponless and vulnerable.

The game rewards players who can effectively combine both combat styles, switching between aggressive close-quarters fighting and strategic ranged attacks based on the battlefield situation.

Operation Guide

Master these simple controls to dominate the arena:

  • Arrow Keys : Move your stick figure in all four directions
  • A Key : Perform a stabbing attack with your knife
  • S Key : Throw your knife at enemies (use strategically!)

The controls are designed for quick response times, allowing experienced players to execute complex movement patterns and attack combinations. Practice moving while attacking to become a formidable opponent in the knife-fighting arena.

Why Play This Game

Perfect for Quick Gaming Sessions : Each battle is fast and intense, making it ideal for short breaks or when you need an adrenaline rush.

Competitive Action : Test your reflexes and tactical thinking against challenging AI opponents in survival-style combat.

No Barriers to Entry : Completely free, no registration required, and works on any device with a web browser.

Timeless Appeal : The simple yet engaging gameplay ensures that Knife remains entertaining whether you're a casual gamer or a hardcore action fan.

Skill Development : Improve your hand-eye coordination, reaction times, and strategic thinking through repeated play.

Whether you're looking for a quick action fix or want to master the art of stick figure combat, Knife delivers an authentic fighting experience that captures the essence of classic arena battle games.

Frequently Asked Questions (FAQ)