Skip to content

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

Notifications You must be signed in to change notification settings

kul-arun/asteroids-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks