Skip to content
leofattal edited this page Nov 27, 2025 · 1 revision

๐ŸŽฎ Sniper Strike: Shadow Mission - Feature Showcase

๐ŸŽฏ What You Can Do Right Now

1. Explore a 3D World

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Walk around in full 3D space       โ”‚
โ”‚  โ€ข 100x100 meter test arena         โ”‚
โ”‚  โ€ข Realistic collision detection    โ”‚
โ”‚  โ€ข Smooth camera controls           โ”‚
โ”‚  โ€ข Sprint to move faster            โ”‚
โ”‚  โ€ข Jump over obstacles              โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

2. Engage in Combat

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Tactical shooting mechanics        โ”‚
โ”‚  โ€ข Aim with mouse                   โ”‚
โ”‚  โ€ข Shoot with left click            โ”‚
โ”‚  โ€ข 30-round magazine                โ”‚
โ”‚  โ€ข Reload system (R key)            โ”‚
โ”‚  โ€ข Hit detection via raycasting     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

3. Fight Intelligent Enemies

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Enemy AI with 3 behavior states    โ”‚
โ”‚  โ€ข PATROL: Guard waypoints          โ”‚
โ”‚  โ€ข CHASE: Hunt player (15m range)   โ”‚
โ”‚  โ€ข ATTACK: Engage at close range    โ”‚
โ”‚  โ€ข Health bars show damage          โ”‚
โ”‚  โ€ข Die when health reaches 0        โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

4. Navigate the Environment

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Interactive 3D level design        โ”‚
โ”‚  โ€ข 8 box obstacles for cover        โ”‚
โ”‚  โ€ข 2 wall structures                โ”‚
โ”‚  โ€ข Collision prevents clipping      โ”‚
โ”‚  โ€ข Strategic positioning matters    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

5. Monitor Your Status

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Professional HUD system            โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”โ”‚
โ”‚  โ”‚ HP: โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘ 80/100           โ”‚โ”‚
โ”‚  โ”‚ Ammo: 24/90                     โ”‚โ”‚
โ”‚  โ”‚ Enemies: 3/4                    โ”‚โ”‚
โ”‚  โ”‚ Objective: Eliminate all        โ”‚โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ“‹ Complete Feature List

โœ… Player Mechanics

  • First-person camera
  • Mouse-look (360ยฐ rotation)
  • WASD movement
  • Sprint (Shift)
  • Jump (Space)
  • Collision detection
  • Health system (100 HP)
  • Gravity and physics
  • Crouch (planned)
  • Prone (planned)

โœ… Weapons & Combat

  • Primary weapon (Assault Rifle)
  • Left-click shooting
  • Ammo counter (30/90)
  • Reload system (R key)
  • Fire rate limiting
  • Raycasting hit detection
  • Enemy damage system
  • Multiple weapons (planned)
  • Grenade throwing (planned)
  • Weapon switching (planned)

โœ… Enemy AI

  • Patrol behavior
  • Player detection
  • Chase behavior
  • Attack behavior
  • Health system
  • Death and removal
  • Health bars
  • Shooting back (planned)
  • Cover seeking (planned)
  • Multiple enemy types (planned)

โœ… Level Design

  • Ground plane (100x100m)
  • Grid material
  • Box obstacles (8 total)
  • Wall structures (2 total)
  • Ambient lighting
  • Directional lighting (sun)
  • Simple skybox
  • Collision meshes
  • Multiple environments (planned)
  • Destructible objects (planned)

โœ… UI/HUD

  • Health bar (color-coded)
  • Ammo display
  • Enemy counter
  • Objective tracker
  • Controls reference
  • Weapon info display
  • Crosshair
  • Minimap (planned)
  • Damage indicators (planned)

โœ… Technical

  • Babylon.js 6.0 engine
  • WebGL 2.0 rendering
  • Vite build system
  • Modular architecture
  • 60 FPS performance
  • Browser compatibility
  • Sound system (planned)
  • Particle effects (planned)
  • Save/load (planned)

๐ŸŽฌ Gameplay Flow

START
  โ†“
[Spawn in Test Arena]
  โ†“
[Move with WASD + Mouse]
  โ†“
[Explore Environment] โ†โ”€โ”€โ”€โ”€โ”€โ”
  โ†“                         โ”‚
[Enemy Detected!]           โ”‚
  โ†“                         โ”‚
[Enemy Chases Player]       โ”‚
  โ†“                         โ”‚
[Engage in Combat]          โ”‚
  โ†“                         โ”‚
[Shoot Enemy (Click)]       โ”‚
  โ†“                         โ”‚
[Enemy Takes Damage]        โ”‚
  โ†“                         โ”‚
[Enemy Dies]                โ”‚
  โ†“                         โ”‚
[Check Remaining Enemies] โ”€โ”€โ”˜
  โ†“
[All Enemies Eliminated]
  โ†“
OBJECTIVE COMPLETE!

๐ŸŽฏ Combat System Diagram

PLAYER
  โ”‚
  โ”œโ”€โ–บ [AIM] โ”€โ–บ Mouse controls camera rotation
  โ”‚
  โ”œโ”€โ–บ [SHOOT] โ”€โ–บ Left Click
  โ”‚      โ”‚
  โ”‚      โ”œโ”€โ–บ Check ammo > 0
  โ”‚      โ”œโ”€โ–บ Check fire rate cooldown
  โ”‚      โ”œโ”€โ–บ Create raycast from camera
  โ”‚      โ”œโ”€โ–บ Check for enemy hit
  โ”‚      โ””โ”€โ–บ Damage enemy if hit
  โ”‚
  โ””โ”€โ–บ [RELOAD] โ”€โ–บ Press R
         โ”‚
         โ”œโ”€โ–บ Check reserve ammo > 0
         โ”œโ”€โ–บ Start 2s reload timer
         โ””โ”€โ–บ Transfer ammo to magazine

๐Ÿค– Enemy AI States

PATROL STATE
  โ”œโ”€ Follow waypoints in square pattern
  โ”œโ”€ Check distance to player
  โ””โ”€ If player within 15m โ†’ CHASE STATE

CHASE STATE
  โ”œโ”€ Move toward player position
  โ”œโ”€ Rotate to face player
  โ”œโ”€ Check distance to player
  โ”œโ”€ If player within 10m โ†’ ATTACK STATE
  โ””โ”€ If player beyond 15m โ†’ PATROL STATE

ATTACK STATE
  โ”œโ”€ Stop moving
  โ”œโ”€ Face player
  โ”œโ”€ [Planned] Shoot at player
  โ””โ”€ If player beyond 10m โ†’ CHASE STATE

๐Ÿ—๏ธ Architecture Overview

main.js
  โ””โ”€โ–บ Game.js (Main Loop)
        โ”‚
        โ”œโ”€โ–บ InputManager (Keyboard/Mouse)
        โ”‚     โ””โ”€ Detects key presses
        โ”‚     โ””โ”€ Tracks mouse movement
        โ”‚
        โ”œโ”€โ–บ Player (Character Controller)
        โ”‚     โ””โ”€ Movement
        โ”‚     โ””โ”€ Camera
        โ”‚     โ””โ”€ Shooting
        โ”‚     โ””โ”€ Health
        โ”‚
        โ”œโ”€โ–บ EnemyManager
        โ”‚     โ””โ”€ Spawns enemies
        โ”‚     โ””โ”€ Updates all enemies
        โ”‚     โ””โ”€ Enemy (Individual AI)
        โ”‚           โ””โ”€ State machine
        โ”‚           โ””โ”€ Pathfinding
        โ”‚           โ””โ”€ Combat
        โ”‚
        โ”œโ”€โ–บ LevelManager
        โ”‚     โ””โ”€ Creates terrain
        โ”‚     โ””โ”€ Spawns obstacles
        โ”‚     โ””โ”€ Lighting setup
        โ”‚
        โ””โ”€โ–บ UIManager
              โ””โ”€ Updates HUD
              โ””โ”€ Health bar
              โ””โ”€ Ammo counter

๐Ÿ“Š Performance Metrics

Metric Current Target Status
FPS 60+ 60 โœ…
Load Time ~2s <5s โœ…
Memory ~150MB <500MB โœ…
Draw Calls ~50 <100 โœ…
Polygons ~10K <100K โœ…

๐ŸŽจ Visual Style

Current: Minimalist placeholder graphics

  • Capsule characters
  • Box obstacles
  • Grid ground
  • Solid colors

Planned (from PRD):

  • Detailed 3D character models (15K-20K polygons)
  • PBR materials
  • Particle effects
  • Advanced lighting
  • Textured environments

๐Ÿ”Š Audio (Planned)

Based on PRD specifications:

  • ๐ŸŽต Dynamic music (stealth/combat layers)
  • ๐Ÿ”ซ Weapon sounds (per gun type)
  • ๐Ÿ‘Ÿ Footstep sounds (surface-dependent)
  • ๐Ÿ’ฅ Explosion sounds
  • ๐ŸŽฏ UI feedback sounds
  • ๐Ÿ“ป Enemy voice lines

๐Ÿ—บ๏ธ Future Levels (from PRD)

  1. Urban Rooftops - City skyline, neon lights
  2. War-Torn Streets - Destroyed buildings, fires
  3. Military Base - Fortified compound, towers
  4. Industrial Complex - Factory, catwalks
  5. Mountain Outpost - Snowy cliffs, caves

๐ŸŽ–๏ธ Progression System (Planned)

MISSIONS โ†’ XP โ†’ LEVEL UP
    โ†“        โ†“       โ†“
  COINS   SKILLS   UNLOCKS
    โ†“        โ†“       โ†“
  SHOP โ†’ WEAPONS โ†’ ATTACHMENTS

๐Ÿ’ช Strengths of Current Build

  1. Solid Foundation: All core systems working
  2. Modular Code: Easy to extend and modify
  3. Good Performance: 60+ FPS with room to grow
  4. Professional UI: Clean, functional HUD
  5. Working AI: Enemies behave intelligently
  6. Playable: Fun to test and experiment with

๐Ÿš€ Ready to Play?

npm run dev

Then:

  1. Click the game canvas to lock your cursor
  2. Use WASD to move around
  3. Aim with your mouse
  4. Left-click to shoot enemies
  5. Press R to reload when needed
  6. Eliminate all 4 enemies to win!

Have fun! ๐ŸŽฎ


This is a working prototype demonstrating the core mechanics from the 70-page PRD

Clone this wiki locally