Bed Wars - Strategic Defense Battle Game

Seele01-Flash
By
Bed Wars is an action-packed 3D defense strategy game where you command a fearless stickman army to protect your base and capture enemy territories disguised as beds. Experience intense gladiatorial battles with automatic combat mechanics and strategic upgrades.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Stickman Bed Wars Defense**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Hyper-casual, low-poly 3D aesthetic with high color saturation (vibrant greens for grass, bright blues for sky). Use simple flat shading or Toon Shading (Cell shading) to reduce rendering load. * **Characters:** * **Hero (Player):** A Yellow Stickman constructed from basic geometric shapes (Spheres for joints/head, Cylinders for limbs). He must wield an oversized, low-poly sword. * **Enemies:** Red Stickmen with similar geometry but smaller weapons. * **Squad:** Smaller yellow stickmen that follow the player (boids logic or simple follow target). * **The "Bed" (Base):** The core objective is a large, cartoonish Bed (Wooden frame, white pillow, red blanket). One Blue Bed (Player Base) and one Red Bed (Enemy Base). * **Environment:** A floating island arena with a bright green ground plane. Include low-poly geometric rocks or trees as obstacles. * **Optimization:** Use `THREE.InstancedMesh` for rendering multiple stickman units and particles to ensure 60FPS on mobile devices. ### 2. Audio Requirements * **BGM:** An energetic, marching-band style or fast-paced arcade loop that encourages movement. * **SFX:** * **Movement:** Soft, rhythmic footstep sounds. * **Combat:** Comical "Whoosh" sounds for sword swings and "Thud/Bonk" sounds for impacts. * **Bed Damage:** A loud wood-splintering crunch when a bed takes damage. * **Collection:** High-pitched "Ding" or coin sound when defeating enemies/collecting resources. ### 3. Gameplay Loop * **Core Mechanic (Auto-Combat):** There is no attack button. The player moves the character into enemies. When within range (`distance < weaponLength`), the character automatically swings the weapon. * **Objective:** The player starts at the Blue Bed. They must fight through waves of Red Stickmen to reach the Red Bed and destroy it. * **Resources & Upgrades:** Defeating enemies drops "Gold" (yellow floating cubes). * **Win/Loss:** * **Win:** Enemy Bed HP reaches 0. * **Loss:** Player Bed HP reaches 0 (enemies will try to pathfind to the player's bed). * **Squad System:** As the player collects Gold, they can walk over a "Recruit Zone" near their base to spawn smaller ally stickmen that automatically follow and attack nearby enemies. ### 4. Mobile Controls & Interaction * **Movement (Virtual Joystick):** Implement a virtual joystick on the bottom-left of the screen. The player moves relative to the camera view. * *Logic:* Touch start -> Center of joystick. Touch move -> Direction/Speed. Touch end -> Stop. * **Orientation:** **Landscape Mode** is preferred to view the battlefield. * **UI/HUD:** * **Health Bars:** Floating billboards above the Beds and the Player. * **Upgrade Buttons:** Large, tappable buttons (min 60x60px) on the right side of the screen for "Upgrade Sword" or "Heal Base". * **Feedback:** Add `navigator.vibrate` (haptic feedback) when the player takes damage or destroys the enemy bed. Add "Floating Text" damage numbers that pop up and fade away upon hits. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Bed Wars is a thrilling 3D defense strategy game that combines fast-paced action with tactical gameplay. Command your elite stickman squad in epic gladiatorial battles where strategy meets non-stop combat. Your mission is clear: defend your base territory while systematically capturing enemy strongholds cleverly disguised as innocent-looking beds.

This innovative casual defense game features stunning 3D graphics and an immersive battlefield experience. What starts as a solo journey quickly evolves into commanding an entire army as you progress through increasingly challenging levels. The deceptive simplicity of "beds" as enemy bases adds a unique twist to traditional defense gameplay.

Core Features

Automatic Combat System

Bed Wars revolutionizes traditional combat mechanics with its innovative automatic attack system. Simply move your character toward enemies, and your weapon will automatically engage targets. This streamlined approach lets you focus on strategy and positioning rather than complex control schemes.

Strategic Base Defense

Protect your territory while simultaneously planning offensive operations against enemy bases. The dual nature of defense and offense creates dynamic gameplay where every decision impacts your survival and success.

Comprehensive Upgrade System

Enhance your stickman warriors through a detailed upgrade system. Improve soldier capabilities, strengthen defensive structures, and unlock powerful new weapons as you progress through the campaign.

Escalating Difficulty

Face increasingly cunning and fierce opponents as you advance. Each level introduces new challenges that test your strategic thinking and adaptability, ensuring the gameplay remains engaging and challenging.

Gameplay Mechanics

Territory Control

Your primary objective involves capturing and holding strategic positions on the battlefield. Enemy bases may look like harmless beds, but don't be fooled – these are heavily fortified positions requiring careful tactical approaches.

Squad Management

Start your journey solo and gradually build a formidable army. Recruit, train, and deploy stickman warriors with different specialties and abilities to create the ultimate fighting force.

Point Collection System

Defeat enemies and complete objectives to earn valuable points. Use these resources to upgrade your army, improve defenses, and unlock new strategic options.

Operation Guide

Mastering Bed Wars requires understanding both movement and strategic positioning:

  • WASD or Arrow Keys : Navigate your character across the 3D battlefield
  • Left Mouse Button : Interact with the game interface and manage upgrades
  • Movement Strategy : Position yourself strategically – every step counts in this automatic combat system
  • Base Management : Monitor your territory while planning attacks on enemy positions

Remember, in Bed Wars, movement equals attack. Your character automatically engages enemies when in range, so positioning and timing become your primary tactical tools.

Why Play Bed Wars

Bed Wars offers a perfect blend of strategy and action for players seeking engaging defense gameplay. The automatic combat system makes it accessible to casual players while the strategic depth satisfies tactical gaming enthusiasts. With its colorful 3D graphics, progressive difficulty, and unique "bed base" concept, this game delivers hours of entertaining battlefield action.

The game runs smoothly on both desktop and mobile browsers, making it perfect for quick gaming sessions or extended strategic campaigns. No downloads required – jump straight into the action and start building your stickman empire today!

Frequently Asked Questions (FAQ)