/asteroids-game

A simple implementation of the classic Asteroids game in C++ using the Simple and Fast Multimedia Library (SFML).

Primary LanguageC++

Asteroids Game

A simple implementation of the classic Asteroids game in C++ using the Simple and Fast Multimedia Library (SFML).

Game Controls

  • W or UP: Forward thrust.
  • A or LEFT : Anti-clockwise rotation.
  • D or RIGHT : Clockwise rotation.
  • ENTER or SPACE : Fire projectile.

Requirements

  • GCC

Install GCC 12.1 or higher from here.

  • SFML

Install SFML 2.6.0 from here.

Instructions

  • In the terminal, run the bash script setup.sh via:
./setup.sh

This will create an executible file called asteroids.

  • To start the game, run the following command:
./asteroids

The gameplay is shown in the demo directory.

NOTE : The sources of the images and the font used in this project are mentioned in source.md file.