Skip to content

Lexisync-dev/astro-drifter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RPG Game (Space Shooter)

A fast-paced, 2D space shooter game built with C++ and SFML 3! Control your spaceship, blast through incoming asteroids, and survive for as long as possible while racking up points.

Features

  • Dynamic Asteroids (Enemies): Asteroids spawn with variable sizes. Larger asteroids have more health and take more hits to destroy.
  • Hit Reactions: Watch the asteroids flash red and visually break apart (shrink) as you blast them with lasers.
  • Auto-Pilot Mode: Toggle auto-play on or off if you want to give your trigger finger a rest.
  • High-Speed Action: Fast bullet mechanics and fluid player movement.

Controls

  • W / A / S / D: Move your spaceship
  • Left Mouse Button: Fire lasers
  • P: Enable Auto-Attack mode
  • O: Disable Auto-Attack mode
  • Escape: Quit the game

How to Run on Linux

Prerequisites

Make sure your system has the following installed:

  1. C++ Compiler & Make: e.g., g++ and make
  2. SFML 3: The Simple and Fast Multimedia Library (version 3.x).
  3. Git LFS: The game's image and font assets are stored using Git Large File Storage. You must install this to download the real assets!

1. Download the Assets (Important!)

If you just cloned the repository, your images and fonts might be small placeholder files. To download the actual graphics, run:

# On Arch Linux, for example:
sudo pacman -S git-lfs

# Inside the project folder:
git lfs install
git lfs pull

(If you skip this step, the game will crash when it tries to load the textures!)

2. Compile and Play

The easiest way to start the game is by using the provided runner script. From the root directory, simply execute:

./run.sh

This script will automatically invoke make to compile the source code into the rpg-game-linux executable and then safely launch the game with all asset paths resolving correctly.

Enjoy the game!

About

Simple Game in C++ with SFML

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors