Space Raiders

Arcade Game Built with Processing

ProcessingJavaGame DevOOP
View on GitHub

Overview

An interactive space-themed arcade game where players defend against descending enemy invaders by clicking to eliminate them. Features progressive difficulty across two levels, random enemy wave spawning, background music, and a state machine-driven game flow from start screen through victory or defeat.

Key Features

  • Multi-level progression: Level 1 requires 10 points, Level 2 requires 20 points to win
  • Dynamic enemy spawning with randomized positions (1-5 enemies per wave)
  • Click-to-eliminate combat with real-time score tracking
  • Looping background music with automatic replay every 25 seconds
  • Game state machine: Start screen → Level 1 → Transition → Level 2 → Game Over
  • Visual assets: enemy sprites and health icons

Architecture

Built with Processing (Java-based creative coding framework), the game runs at 30 FPS with a draw-loop architecture. Enemy positions are tracked using a HashSet for efficient add/remove operations. The game state is managed through an integer-indexed screen system, with mousePressed() events handling both enemy elimination and screen transitions.