Explorar o código

Add build instructions with Box2D

DricomDragon %!s(int64=3) %!d(string=hai) anos
pai
achega
bdb053887e
Modificáronse 1 ficheiros con 18 adicións e 1 borrados
  1. 18 1
      README.md

+ 18 - 1
README.md

@@ -1,3 +1,20 @@
 # SpacyShooter
 
-A not finished project with space crafts shooting at will with physics simulation.
+A not finished project with space crafts shooting at will with physics simulation.
+
+## Build
+
+You need `make`, `SDL1` and [Box2D](https://github.com/erincatto/box2d) to build this project.
+
+Example on Ubuntu :
+```sh
+$ sudo apt install make g++ libsdl-dev libsdl-image1.2-dev libsdl-gfx1.2-dev
+$ make
+```
+
+**Warning about Box2D** : you need at least version 2.4.1 in order to compile this project. If your package manager is out of date, please build Box2D and install it from source.
+
+To execute :
+```sh
+$ make exec
+```