Sudden Attack - First Person Shooter Game

Seele01-Flash
By
Sudden Attack is an intense first-person shooter game where you lead a search party through an abandoned city overrun by mutated monsters. Use strategic combat and teamwork to survive the apocalyptic nightmare.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Sudden Attack: Mobile Survival". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Create a desolate, post-apocalyptic urban atmosphere inspired by early 2000s 3D shooters. Use low-poly models with desaturated textures (browns, greys, olive greens) to emulate the "abandoned city" vibe. * **Environment Construction:** * **Terrain:** A textured dirt/rubble ground plane using a repeating texture. * **Ruins:** Generate procedural concrete building skeletons (skeletal skyscrapers) using simple box geometries with window cutouts. Place them to create "lanes" and cover. * **Vegetation:** Place vivid green low-poly trees (instanced meshes for performance) scattered around the rubble to match the screenshot's contrast. * **Atmosphere:** Implement heavy greyish-brown distance fog (`scene.fog`) to obscure the horizon, manage draw distance, and enhance the gloomy survival mood. * **Characters:** * **Player:** Represented by a first-person view of a weapon (an AK-47 style assault rifle) attached to the camera. * **Allies:** Simple humanoid soldiers in green camouflage textures using basic pathfinding to follow the player or hold positions. * **Enemies:** Two types: 1. "Mutants" (large, bulky, brownish skin, wearing gas masks/tubes) and 2. "Zombies" (thinner, faster). * **Mobile Optimization:** Use `THREE.InstancedMesh` for enemies and trees. Limit dynamic lights; use baked lighting or a simple hemisphere light plus one directional light for shadows. Texture resolution should be capped at 512x512. ### 2. Audio Requirements * **BGM:** A looping, tense, industrial ambient track (low synth drones) that transitions to a faster-paced drum-and-bass rhythm when enemies are aggroed. * **Sound Effects (SFX):** * **Combat:** Punchy, loud gunshot sounds; a metallic "click-clack" for reloading. * **Enemies:** Guttural moans for zombies; heavy breathing/roaring for the large mutants. * **Feedback:** A wet "squish" sound for successful hits on enemies; a heartbeat thumping sound when player health is low. * **UI:** Digital "beep" for button presses; a "pickup" sound (zip/rustle) when collecting ammo or weapons. ### 3. Gameplay Loop * **Scenario:** The player spawns with a squad of 2 AI teammates in the center of the ruins. * **Wave System:** Enemies spawn from the fog at the edges of the map in waves of increasing difficulty. * **Mechanics:** * **Combat:** Player must aim and shoot enemies. Headshots deal double damage. * **Teammates:** Allies automatically shoot at the nearest enemy. If they die, the player loses fire support. * **Looting:** Weapons and ammo boxes spawn randomly on the ground. When near an item, a contextual UI button appears to "Equip/Reload". * **Win/Loss:** * **Win:** Survive 5 waves of attacks to prompt a "Rescue Helicopter Arrived" victory screen. * **Loss:** Player health reaches 0. ### 4. Mobile Controls & Interaction * **Orientation:** Force **Landscape Mode**. * **Touch Controls:** * **Movement:** Virtual Joystick on the bottom-left screen (for WASD movement). * **Aiming:** Touch and drag anywhere on the right half of the screen to rotate the camera. * **Shooting:** Large "Fire" button on the bottom-right. *Optional:* Implement an "Auto-fire" toggle (weapon fires automatically when crosshair is over an enemy) to assist with mobile aiming difficulty. * **Actions:** * **Jump:** Small circular button above the Fire button. * **Reload:** Circular icon near the top-right ammo counter. * **Interact:** A context-sensitive button appears in the center-bottom only when near a weapon/item (replacing the 'F' key). * **UI Layout:** * **Health:** Green bar top-left. * **Ammo:** '30/90' text top-right. * **Crosshair:** A static semi-transparent crosshair in the center of the screen. * **Feedback:** Screen shake effect (camera jitter) when shooting or taking damage. Red vignette pulse on screen edges when health is critical. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Sudden Attack is an adrenaline-pumping first-person shooter that throws you into the heart of a post-apocalyptic nightmare. When your search and rescue mission goes horribly wrong, you and your team find yourselves ambushed by hordes of mutated monsters in an abandoned city. This intense FPS game challenges players to use tactical thinking, precise shooting, and team coordination to survive against overwhelming odds.

The game combines classic FPS mechanics with survival elements, creating a unique experience where every decision matters. As an elite soldier, you must put your training to the test while exploring a beautifully rendered 3D environment filled with danger at every corner.

Core Features

Immersive 3D Combat Environment

Experience stunning 3D graphics that bring the abandoned city to life. The detailed environments showcase destroyed buildings, overgrown vegetation, and atmospheric lighting that creates a genuinely eerie post-apocalyptic setting. Every location tells a story of the disaster that befell this once-thriving urban area.

Strategic Team-Based Gameplay

Unlike typical solo FPS games, Sudden Attack emphasizes teamwork and strategy. You're not alone in this fight - coordinate with your AI teammates to create tactical advantages, cover each other during firefights, and work together to clear areas of hostile creatures. The game rewards players who think strategically rather than rushing in guns blazing.

Dynamic Monster Encounters

Face off against various types of mutated creatures, each with unique behaviors and attack patterns. From fast-moving infected humans to larger monstrous entities, the game keeps you on your toes with diverse enemy types that require different tactical approaches to defeat.

Extensive Weapon Arsenal

Scavenge for weapons throughout the abandoned city. Find firearms scattered across the environment and inside buildings, each offering different advantages in combat. From assault rifles to shotguns, choose the right weapon for each encounter and manage your ammunition carefully.

Gameplay Mechanics

The core gameplay revolves around exploration, combat, and survival. Players navigate through interconnected city areas, clearing out monster infestations while searching for supplies and better equipment. The first-person perspective provides an immersive experience that puts you directly in the action.

Combat requires both accuracy and tactical thinking. Monsters can attack from multiple directions, so positioning and awareness are crucial. Use the environment to your advantage - take cover behind debris, use elevation for better shooting angles, and coordinate with your team to create crossfire opportunities.

Operation Guide

Mastering the controls is essential for survival:

  • Movement : Use WASD keys or arrow keys to navigate the environment
  • Combat : Left mouse button to fire your weapon at enemies
  • Interaction : Press F to pick up weapons, ammunition, and other items
  • Weapon Management : R key to reload your current weapon
  • Mobility : Space bar to jump over obstacles or reach higher areas
  • Speed : Hold Shift to sprint when you need to move quickly or escape danger

The game encourages exploration, so don't hesitate to search every building and area for valuable resources. Items are often hidden in less obvious locations, rewarding thorough players with better equipment.

Why Play Sudden Attack

Sudden Attack stands out in the crowded FPS genre by offering a perfect blend of action and strategy. The game is completely free to play through your web browser, requiring no downloads or installations. This accessibility makes it perfect for quick gaming sessions or extended play periods.

The combination of team-based tactics, resource management, and intense firefights creates a gameplay experience that's both challenging and rewarding. Whether you're a veteran FPS player or new to the genre, the game offers an engaging experience that will keep you coming back for more.

The post-apocalyptic setting provides an atmospheric backdrop that enhances the tension and immersion. Every corner could hide a new threat, making exploration both exciting and nerve-wracking.

Frequently Asked Questions (FAQ)