|
|
|
@ -4,19 +4,49 @@
@@ -4,19 +4,49 @@
|
|
|
|
|
|
|
|
|
|
![image](https://alistairmichael.com/media/game3.png) |
|
|
|
|
|
|
|
|
|
# Build Instructions |
|
|
|
|
# Prebuilt Binary |
|
|
|
|
|
|
|
|
|
See the releases tab. |
|
|
|
|
|
|
|
|
|
## Linux |
|
|
|
|
On linux, you will need to install the SDL2 package from your package maintainer. |
|
|
|
|
|
|
|
|
|
### Fedora |
|
|
|
|
|
|
|
|
|
Download the SDL2 runtime and SDL2 development packages from your package |
|
|
|
|
distributor. [official page](http://libsdl.org/download-2.0.php) |
|
|
|
|
```sh |
|
|
|
|
sudo dnf install SDL2 |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
# Build Instructions |
|
|
|
|
|
|
|
|
|
```bash |
|
|
|
|
## On Linux |
|
|
|
|
|
|
|
|
|
Install the [libSDL2](http://libsdl.org/download-2.0.php) 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 |
|
|
|
|
cd space_game |
|
|
|
|
make |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
By default it is built using debug flags. |
|
|
|
|
### For Linux |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
make clean |
|
|
|
|
make target=linux |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
### For Windows |
|
|
|
|
|
|
|
|
|
You have to have mingw and the mingw libsdl library (I think). |
|
|
|
|
|
|
|
|
|
Run setup.sh to download the SDL2 static libraries and `SDL2.dll`. |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
./setup.sh |
|
|
|
|
make clean |
|
|
|
|
make target=windows |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
### With debug flags |
|
|
|
|
|
|
|
|
|
Append `debug=true` to the make command. |
|
|
|
|