Space Invaders — Aritro Saha Arcade

A retro arcade space shooter where you pilot a defender spaceship to protect production servers from descending software bugs.

Gameplay & Rules

Waves of bugs and merge conflicts descend toward your server cluster. Blast incoming bugs while dodging enemy projectiles and utilizing defensive server shields that absorb incoming fire. As waves clear, enemy march velocity increases.

Entity-Component Architecture & AABB Collision Physics

The arcade engine is built on lightweight 2D game architecture principles:

  • Axis-Aligned Bounding Box (AABB) Intersection: Laser projectiles and alien sprites execute bounding-box overlap mathematics (x1 < x2 + w2 && x1 + w1 > x2 && y1 < y2 + h2 && y1 + h1 > y2) on every frame, supporting dozens of concurrent particles with zero frame drops.
  • March Acceleration Curves: As alien invaders are eliminated, the march interval between fleet steps decreases exponentially, faithfully reproducing the iconic mechanical tension of classic hardware clock throttling.
  • Destructible Shield Degradation: Defense bunker shields track damage hitpoints, absorbing incoming laser strikes until structural integrity fails.

Controls

  • Desktop: Use Left / Right Arrow or A / D to navigate ship. Press Spacebar to fire laser cannon.
  • Mobile: Dedicated on-screen touch buttons for directional maneuvering and laser firing.

Frequently Asked Questions

How does collision detection work in Space Invaders?

The game uses Axis-Aligned Bounding Box (AABB) intersection mathematics inside a 60fps HTML5 Canvas requestAnimationFrame loop for instant hit registration.

Can I play Space Invaders on touch devices?

Yes, a specialized mobile layout with on-screen virtual steering buttons and a dedicated fire button renders automatically on mobile screens.