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.
- Classic asteroid shooting gameplay
- Increasing difficulty and score progression
- Keyboard controls and pause/debug toggles
- Local leaderboard stored in
leaderboard.dat
- C++
- Win32 API
- GDI+
- Visual Studio solution/project files (
.sln,.vcxproj)
- GDI+ (Windows SDK)
- cURL
- nlohmann/json
- Open
Asteroids.slnin Visual Studio. - Select configuration (
DebugorRelease) and platform (x64). - Build and run.
msbuild Asteroids.sln /p:Configuration=Release /p:Platform=x64The executable is produced in the corresponding output folder (for example x64/Release/).
Up Arrow: accelerateLeft/Right Arrow: rotate shipSpace: shootP: pause/unpauseF11: toggle debug info
Asteroids.cpp: game loop and core logicAsteroids.h: app headerAsteroids.sln: Visual Studio solutionleaderboard.dat: local score data
See LICENSE.txt.