A 2D space shooter made in JS because I was bored today.  I have some minor plans for it to come. 

Gameplay:

  • Click “Play” to start.
  • Controls:
    • Movement:
      • Press A or Left Arrow: Player moves left.
      • Press D or Right Arrow: Player moves right.
      • Both A/D and arrow keys work interchangeably.
    • Shooting:
      • Press Spacebar: Shoots (as before), plays “pew” sound.
      • Click Left Mouse Button (LMB): Shoots, plays “pew” sound.
      • Both Spacebar and LMB work interchangeably.
      • Collect Rapid Fire power-up: Click LMB or hold Spacebar to shoot rapidly.
  • Sound Effects:
    • Shooting: “Pew” sound (sine wave, 800 Hz to 400 Hz, 0.2s) plays when shooting (unchanged).
    • Bullet Hitting Enemy:
      • Shoot an enemy: Hear a short “explosion” sound (sawtooth wave, 200 Hz to 50 Hz, 0.3s).
      • Distinct from shooting sound, slightly lower pitch and harsher tone.
    • Power-Up Collection:
      • Collect any power-up (e.g., Health, Shotgun Blast): Hear a “ding” sound (triangle wave, 600 Hz to 800 Hz, 0.2s).
      • Bright and uplifting, contrasts with the shooting and hit sounds.
  • Gameplay:
    • Health system, power-ups, difficulty, visuals, and scoring work as before.
    • Playtime remains ~1-2 minutes (20 hits at 5 HP each), with health power-ups extending it further.


Leave a comment

Log in with itch.io to leave a comment.