Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

vocasle/SpaceBattle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpaceBattle

A simple CLI game. It is a variation of Battleship game in 3D space.

It has 3 levels. Was tested on Windows x86 and x64.

Should work on Linux and Mac OS X as well.

Gameplay example:

alt text

How To Build

Prerequisites

SpaceBattle can be built with CMake.

First of all you will need a fresh CMake (3.15+).

The game uses Boost.Locale and Boost.Nowide libraries.

You have to install Boost.Locale library yourself.

To install Boost.Nowide you must clone repo with it's submodules:


$ git clone --recursive [email protected]:vocasle/SpaceBattle 

After that (sorry for that, I built Boost locally with B2) you must adjust

SpaceBattle/src/CMakeLists.txt to point to FindBoost.cmake

and adjust your Boost version like that:

find_package(Boost 1.72.0 EXACT REQUIRED  

    COMPONENTS locale 

    HINTS "E:\\Libs\\boost_1_72_0\\stage\\lib\\cmake") 

If you are using vcpkg you can remove line HINTS "E:\\Libs\\boost_1_72_0\\stage\\lib\\cmake" and CMake should find your version of Boost.Locale.

Build

$ cd SpaceBattle
$ mkdir build
$ cmake -S . -B build
$ cmake --build build

You can install SpaceBattle as well

$ cmake --install . # CMake 3.15+ only

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published