Skip to content

joshSi/PhantomForce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phantom Force

A game built with the SFML library

CI

Build

For Linux and Mac, the CMake config does not automatically install sfml and assumes the libraries already exist on the system. See below to install sfml:

Prerequisites

Linux

# May need to run to fetch latest packages
sudo apt-get update
sudo apt-get install libsfml-dev

MacOS

# May need to run to fetch latest packages
brew update
brew install sfml

Windows

Windows does not need to install sfml as a prerequisite like Linux and MacOS do. Instead, the CMake config will download sfml using the FetchContent module.

if(NOT SFML_FOUND)
message("SFML not found, downloading...")
include(FetchContent)
FetchContent_Declare(SFML
GIT_REPOSITORY https://github.com/SFML/SFML.git
GIT_TAG 2.6.x
)
FetchContent_MakeAvailable(SFML)
endif()

CMake

For a single-configuration generator (typically the case on Linux and macOS):

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build

For a multi-configuration generator (typically the case on Windows):

cmake -S . -B build
cmake --build build --config Release

Run

cd build
./PhantomForce

License

This project is licensed under the MIT License - see the LICENSE.md

About

Top down shooter made with SFML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published