Skip to content

Latest commit

 

History

History
46 lines (42 loc) · 2.39 KB

PRD.md

File metadata and controls

46 lines (42 loc) · 2.39 KB

Cube Collector Game - PRD

Game Overview

A 3D cube collection game built with Three.js where players control a character to collect scattered cubes in a 3D environment.

Core Features

  • 3D graphics using Three.js
  • Player-controlled green cube character (3 lives) with growth mechanics
  • Dynamic player scaling (1x to 3x size) based on sphere consumption
  • Power progression system (levels increase every 3 spheres collected)
  • Collectible floating spheres with random colors and pulsing effects (+10 points)
  • Enemy AI cubes that hunt the player (destroyable for 25 × power level points)
  • Shooting mechanics with mouse aiming and space bar shooting
  • Progressive projectile enhancement (size, speed, damage, count scale with player size)
  • Multi-shot spread system for larger players (1-5 bullets per shot)
  • Color evolution system for player and weapons
  • Score system with scaling combat rewards
  • Lives system with respawn mechanics
  • Smooth camera following
  • WASD/Arrow key movement + automatic mouse/space shooting controls
  • Dynamic lighting and shadows
  • Explosive visual effects and particle systems
  • Area-damage bombing system with aggressive AI-driven flying enemies
  • Comprehensive audio system with procedural sound generation
  • Growth visual feedback with eating particle effects
  • Game over and restart functionality (Shift+R key combination)
  • Infinite gameplay with auto-spawning collectibles and enemies

Technical Requirements

  • Three.js r128 (loaded from CDN)
  • WebGL-compatible browser
  • Responsive design
  • No server setup required

User Experience

  • Intuitive controls combining movement, aiming, and shooting
  • Smooth 3D movement and camera with responsive targeting
  • Progressive power fantasy through visible growth and immediate shooting enhancement
  • Challenging enemy AI balanced with scalable player offensive capabilities
  • Rich visual and audio feedback through size changes, color evolution, particle effects, and dynamic sound effects
  • Clear UI showing score, lives, power level, and size multiplier
  • Expanded grass-textured playing field (75x75) for more strategic movement and natural aesthetics
  • Adrenaline-pumping chase and combat mechanics with growth rewards
  • Strategic gameplay balancing risk/reward of collection vs immediate combat
  • Satisfying progression system with visual and mechanical power increases
  • Compelling collection loop where each cube provides meaningful advancement