Skip to content

Repository files navigation

Asteroids (Win32 C++)

Asteroids is a desktop game written in C++ for Windows using the Win32 API and GDI+. The project recreates classic arcade gameplay with runtime geometric rendering, score progression, and a local leaderboard.

Features

  • Classic asteroid shooting gameplay
  • Increasing difficulty and score progression
  • Keyboard controls and pause/debug toggles
  • Local leaderboard stored in leaderboard.dat

Tech Stack

  • C++
  • Win32 API
  • GDI+
  • Visual Studio solution/project files (.sln, .vcxproj)

Dependencies

  • GDI+ (Windows SDK)
  • cURL
  • nlohmann/json

Build (Visual Studio)

  1. Open Asteroids.sln in Visual Studio.
  2. Select configuration (Debug or Release) and platform (x64).
  3. Build and run.

Build from CLI

msbuild Asteroids.sln /p:Configuration=Release /p:Platform=x64

The executable is produced in the corresponding output folder (for example x64/Release/).

Controls

  • Up Arrow: accelerate
  • Left/Right Arrow: rotate ship
  • Space: shoot
  • P: pause/unpause
  • F11: toggle debug info

Main Files

  • Asteroids.cpp: game loop and core logic
  • Asteroids.h: app header
  • Asteroids.sln: Visual Studio solution
  • leaderboard.dat: local score data

License

See LICENSE.txt.

About

This is a personal version of the old arcade game "Asteroids" done in C++

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages