The Spear Stickman - Stickman Combat Game

Seele01-Flash
By
The Spear Stickman delivers intense combat action where you control a warrior armed with a deadly spear. Face endless waves of enemy stickmen across multiple platforms in this fast-paced physics-based game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**The Spear Stickman**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: 2.5D Side-scrolling aesthetic. Use an **Orthographic Camera** to maintain the classic "flat" stickman look while using 3D geometry. * **Character Models**: Create Stickmen using simple `THREE.CylinderGeometry` (limbs/body) and `THREE.SphereGeometry` (head/joints). The player is on the left, enemies spawn on the right (and occasionally left) on varying vertical elevations. * *Player*: Black color. * *Enemies*: Dark grey or black. * **Environment**: Minimalist flat background (start with a soft green `#90EE90` as seen in the reference, but allow color shifts per stage). Platforms should be simple black rounded rectangles (`THREE.BoxGeometry` or `ExtrudeGeometry`). * **VFX (Visual Effects)**: * **Blood Particles**: When a spear hits a stickman, emit red particle cubes (`THREE.Points` or instanced meshes) that succumb to gravity and stick to the ground. * **Trajectory Line**: A dotted white line (`THREE.Line` with `DashMaterial`) showing the predicted path of the spear based on current drag tension. * **Optimization**: Use **InstancedMesh** for blood particles and common props (like apples) to ensure 60FPS on mobile devices. ### 2. Audio Requirements * **BGM**: A tribal, rhythmic, percussive track with a fast tempo to induce tension. It should loop seamlessly. * **SFX**: * *Throw*: A sharp "Whoosh" or air-cutting sound. * *Impact (Flesh)*: A wet "Thud" or squelch sound. * *Impact (Headshot)*: A louder, critical "Crunch" sound accompanied by a high-pitched visual flash. * *Impact (Platform/Armor)*: A metallic or wooden "Clank". * *UI*: Soft "Pop" for button clicks, "Ching" for collecting Apple Coins. ### 3. Gameplay Loop * **Core Mechanic**: Turn-based but fast-paced projectile combat. The player and enemy take turns (or real-time with cooldowns) throwing spears at each other. * **Physics & Collision**: * Spears must follow a parabolic arc affected by gravity. * Spears must rotate to align with their velocity vector (the tip always points forward). * **Hitboxes**: Divide the stickman into three zones: 1. **Head**: Instant Kill (Critical Hit). 2. **Torso**: 2 hits to kill. 3. **Limbs**: 3-4 hits to kill. * **Enemy AI**: Enemies spawn at random heights and distances. They aim at the player with varying degrees of accuracy (accuracy improves as the score gets higher). * **Loot**: Enemies drop "Apple Coins" upon death. * **Game Over**: When the player's health reaches zero. Show a "Restart" screen with the high score. ### 4. Mobile Controls & Interaction * **Touch Input (Slingshot Mechanic)**: * **Anywhere-Drag**: The user can touch *anywhere* on the screen to start aiming. * **Drag Logic**: Pulling backward (opposite to target) increases power. Moving the finger up/down adjusts the angle. * **Release**: Releasing the finger launches the spear. * **Visual Feedback**: * Draw the trajectory line dynamically while the user is dragging. * If the target is off-screen, display a red arrow indicator at the edge of the screen showing the enemy's vertical position. * **UI Layout**: * Score and Apple Count in the top-left (safe area). * Shop button in the top-right. * Buttons must be at least 44x44 pixels for touch accessibility. * **Haptic Feedback**: Trigger a short vibration (`navigator.vibrate(200)`) when the player kills an enemy or takes damage. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About The Game

The Spear Stickman is an adrenaline-pumping action game that combines precise aiming mechanics with fast-paced combat. In this thrilling stickman adventure, you take control of a skilled warrior armed with nothing but a trusty spear. Your mission is simple yet challenging: eliminate all enemy stickmen who appear randomly across different platforms while they attempt to take you down.

The game features realistic physics-based combat where every shot matters. Strategic aiming is crucial as different body parts require varying numbers of hits to defeat enemies. Master the art of spear throwing to become the ultimate stickman warrior.

Core Features

Precision-Based Combat System

The game rewards skillful aiming with its sophisticated damage system. Landing a perfect headshot results in an instant kill, while shots to other body parts like legs require multiple hits. This creates exciting strategic gameplay where quick thinking and accurate aim determine your survival.

Dynamic Platform Battles

Enemies spawn randomly across multiple elevated platforms, creating unpredictable combat scenarios. Each battle presents unique challenges as you must quickly assess threats from different angles and elevations while maintaining your defensive position.

Progressive Upgrade System

Earn apple coins by eliminating enemies and use them in the in-game shop to purchase powerful upgrades. Enhance your stickman with protective gear including metal helmets and special Mario-style mushroom helmets that provide additional defense against enemy attacks.

Physics-Based Gameplay

Experience realistic spear throwing mechanics with authentic physics simulation. The trajectory of your spears responds naturally to angle and force, requiring players to master the art of projectile combat for maximum effectiveness.

Gameplay Mechanics

The core gameplay revolves around tactical positioning and precise aiming. As enemy stickmen appear on various platforms, you must quickly assess the situation and choose your targets wisely. The random spawn system ensures that no two gaming sessions are identical, keeping the experience fresh and challenging.

Success depends on your ability to balance offense and defense. While aggressive play can quickly eliminate threats, reckless attacks may leave you vulnerable to counter-strikes. The upgrade system adds depth by allowing players to customize their stickman's capabilities based on their preferred playstyle.

Operation Guide

The game features intuitive mouse-based controls that are easy to learn but challenging to master:

  • Mouse Control : Use your mouse to aim your spear with precision
  • Drag to Aim : Hold and drag the left mouse button to adjust your throwing angle
  • Release to Shoot : Release the mouse button to launch your spear at the target
  • Strategic Aiming : Consider distance, elevation, and target movement when aiming

The simple control scheme allows players to focus on strategy and timing rather than complex button combinations. This accessibility makes the game enjoyable for players of all skill levels while maintaining depth for experienced gamers.

Why Play This Game

The Spear Stickman offers an perfect blend of action and strategy that appeals to fans of physics-based combat games. The game's minimalist art style ensures smooth performance across all devices while delivering maximum entertainment value.

The progressive difficulty and upgrade system provide long-term engagement, encouraging players to improve their skills and unlock new equipment. Whether you're looking for a quick gaming session or an extended challenge, this game adapts to your preferred play duration.

As a completely free browser-based game, there are no barriers to entry. Simply load the page and start playing immediately without downloads, registrations, or payments. The game runs smoothly on both desktop and mobile browsers, making it accessible anywhere you have an internet connection.

Frequently Asked Questions (FAQ)