Skip to content

The classic arcade game implemented in C and Allegro 5 library

License

Notifications You must be signed in to change notification settings

msuliq/blasteroids

Repository files navigation

Blasteroids

Blasteroids Screenshot

Blasteroids is a classic arcade game taking its root from the famous Asteroid. The game is implemented in C using Allegro 5.0 library.

How to Play

To play the game, download the appropriate file for your operating system:

For Windows: blasteroid.exe For Linux: blasteroid_linux For macOS: blasteroid_mac

To run the game on Linux and macOS, follow these steps:

Open the terminal. Navigate to the directory containing the downloaded executable. Run the following command:

  ./blasteroid_mac
  ./blasteroid_linux

To play the game download respective file for your operating system: blasteroid.exe, blasteroid_linux or blasteroid_mac

To run the game on Linux and macOS, open the terminal, navigate to the directory with the downloaded executable and run ./ blasteroid_mac or blasteroid_linux

About

Tutorial & Manual for Allegro 5

Structure of the code:

  • asteroid.c: main adversaries,
  • blast.c: a.k.a. bullet,
  • spaceship.c: the main player,
  • blastroids.c: core of the game,
  • utils.c: mathematical primitives,
  • test_collision.c: verifies collison feature in the game.

Enjoy playing Blasteroids!

About

The classic arcade game implemented in C and Allegro 5 library

Resources

License

Stars

Watchers

Forks

Packages

No packages published