Game Prompt - "Galaxy Defender: Level-Based Shooting Game"

Title: "Galaxy Defender: Level-Based Shooting Game" Technical Requirements: Technology: PhaserJS (v3), HTML5, CSS3, and JavaScript. Files Structure: index.html styles.css game.js (main game logic) scenes/ (sub-folder for managing Phaser scenes) preload.js (loading assets) mainMenu.js (main menu and navigation) gameplay.js (main gameplay loop) gameOver.js (game-over screen) assets/ (for images, audio, and sprites) images/ (spaceships, backgrounds, asteroids, enemies, etc.) audio/ (laser sounds, explosions, background music) sprites/ (animated sprites for the player, enemies, power-ups) Core Game Class (GalaxyDefender): Properties: Canvas size: 1024x768 Game scenes: Preload, Main Menu, Gameplay, Game Over Player: Spaceship object with movement (arrow keys or WASD) and shooting (spacebar) Enemies: Waves of alien ships with varying patterns and difficulty Bullets: Player and enemy projectiles Power-ups: Temporary upgrades (e.g., rapid-fire, shield, double points) Background: Scrolling space background UI Elements: Score, health bar, level indicator, pause button Game States: Playing, Paused, Game Over Gameplay Features: Level Design: Players progress through levels, each introducing new enemy types and mechanics. Levels end with a challenging boss fight every 5 levels. Game Mechanics: Players control a spaceship and shoot at enemies while dodging obstacles and incoming fire. Power-ups spawn randomly during gameplay. Score increases with each enemy destroyed and power-up collected. Player loses health upon collision with enemies or their projectiles. Controls: Movement: Arrow keys or WASD. Shooting: Spacebar. Pause Menu: "P" key. Features: Scoring System: Cumulative score saved to localStorage for leaderboards. Power-ups: Shield: Absorb damage for a limited time. Rapid Fire: Shoot faster for 10 seconds. Health Boost: Regain health. Sound Effects: Laser shots, explosions, power-up collection. Background Music: Epic space-themed soundtrack. Boss Battles: Unique enemies with special abilities at the end of each level set. Game Animation: Smooth sprite-based animations for ships, explosions, and projectiles. Scrolling starry background for a sense of movement. Power-up collection effects (e.g., glowing particles). Visual Elements: Cartoonish and colorful art style with vibrant space-themed assets. UI: Minimalistic with futuristic fonts, glassmorphism for overlays. Health bar, score, and level indicators styled in neon. Screens and Transitions: Start Screen: Title: "Galaxy Defender" Buttons: Start Game, Instructions, Settings, Exit. Background: Animated starfield. Game Screen: Canvas with player spaceship, enemies, and obstacles. HUD displaying health, score, and level. Pause Screen: Resume, Restart, Main Menu buttons. Dimmed game background. Game Over Screen: Display final score and "Play Again" button. High score comparison. Assets and Placeholders: Images: Player ship sprite. Enemy ship and boss sprites. Asteroids and space debris. Background images (scrolling stars, planets). Power-up icons (shield, rapid-fire, health). Audio: Background music loop. Laser shot sound effect. Explosion sound effect. Power-up collection sound. Additional Requirements: Smooth transitions between screens (fade in/out). Cross-browser compatibility. Responsive design for desktop and mobile. Placeholder assets for immediate testing, with a list of required final assets.

Public Last updated: 2024-12-25 07:05:35 PM