Project 3: Pixel Game

A retro-inspired space shooter where you battle meteors, enemy spaceships, and bosses.

Play the Game

Project Overview

This pixel-based space shooter game was built using vanilla JavaScript, HTML, and CSS. It features **player movement, shooting mechanics, enemy spawning, boss battles, and a leaderboard system**.

1. Structure and Layout

The game is contained within a `

` element styled as the game area. Inside this, various elements are dynamically generated, including the player, meteors, enemy spaceships, and bullets.

2. Key Features

- **Player Movement:** Left/Right Arrow Keys
- **Shooting Mechanic:** Spacebar fires bullets
- **Enemies & Boss Battles:** Meteors, enemy ships, and a final boss at **10,000 score**
- **Health & Bonus Drops:** Players can collect health boosts and extra bullets
- **Leaderboard System:** Submit scores and compete for the highest rank

3. Responsive Design

The game runs smoothly on **desktop screens**, with touch-screen support in development. The UI elements adjust dynamically to different resolutions.

4. Challenges and Key Learnings

Handling **collisions**, **enemy AI movement**, and **leaderboard integration** were major challenges. Through optimization and debugging, the game now supports **real-time interactions and scoring updates**.