Procházet zdrojové kódy

Add build instructions with Box2D

DricomDragon před 3 roky
rodič
revize
bdb053887e
1 změnil soubory, kde provedl 18 přidání a 1 odebrání
  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
+```