1
1
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
alistair 195329340a mkfile 3 years ago
LICENCES licens 3 years ago
build-android upd android 3 years ago
c-colours@ebf612394a update submodules and remove SDL_Image dependency 4 years ago
datastructures@f3d3d3c18a update submodules and remove SDL_Image dependency 4 years ago
src bug fix 3 years ago
.gitignore Update '.gitignore' 4 years ago
.gitmodules http submodules 4 years ago
COPYING licens 3 years ago
LICENSE fix release building 4 years ago
Makefile mkfile 3 years ago
README.md fix release building 4 years ago
TerminusTTF.ttf time counter 4 years ago
setup.sh setupscript 4 years ago

README.md

A computer game

Developemnt Blog

image

Prebuilt Binary

See the releases tab.

On Linux and other Unix-Like operating systems you will need to install the SDL2 package from your package maintainer.

Fedora

sudo dnf install SDL2

Build Instructions

On Linux / Unix

Install the libSDL2 runtime and SDL2 development packages from your package distributor. On Fedora, this is the SDL2 and SDL2-devel packages.

git clone --recurse-submodules https://git.topost.net/alistair/space_game.git

(if you forget --recurse-submodules you can use, git submodule init, git submodule update.)

For Linux

make clean
make target=linux

For Windows

You have to have mingw and the mingw libsdl library (I think).

sudo dnf install mingw64-SDL2 mingw64-SDL2_image mingw64-SDL2_ttf mingw64-winpthreads mingw64-winpthreads-static

Run setup.sh to download the SDL2 static libraries and SDL2.dll.

./setup.sh
make clean
make target=windows

FreeBSD

You need to download the header files and put them in the source folder, with the folder name SDL2. You also need the sdl2 and gmake packages.

Something like this:

cd /tmp && wget https://www.libsdl.org/release/SDL2-2.0.12.zip && unzip SDL2-2.0.12.zip
mv /tmp/SDL2-2.0.12/include $source_dir/SDL2
pkg install sdl2 gmake
cd $source_dir
gmake

With debug flags

Append debug=true to the make command.