2026-03-03 09:26:50 +01:00
|
|
|
# SpaceShipSim
|
|
|
|
|
|
2018-03-25 12:08:19 +02:00
|
|
|
This is a small simulation program of a space ship (with infinite fuel) in a
|
|
|
|
|
frictionless environment (space). The idea is to use it for educational
|
|
|
|
|
purposes.
|
|
|
|
|
|
2026-03-03 09:26:50 +01:00
|
|
|
## Compiling
|
|
|
|
|
|
2018-03-25 12:08:19 +02:00
|
|
|
In order to build this program you will require the following dependencies:
|
|
|
|
|
|
2026-03-03 09:26:50 +01:00
|
|
|
- GNU GCC ([https://gcc.gnu.org/])
|
|
|
|
|
- CMake ([https://cmake.org/])
|
|
|
|
|
- Allegro 5 ([http://liballeg.org/])
|
2018-03-25 12:08:19 +02:00
|
|
|
|
|
|
|
|
You can then compile the program via the following commands:
|
|
|
|
|
|
2026-03-03 09:26:50 +01:00
|
|
|
```bash
|
|
|
|
|
cd build/
|
|
|
|
|
cmake ..
|
|
|
|
|
make
|
|
|
|
|
```
|
2018-03-25 12:08:19 +02:00
|
|
|
|
|
|
|
|
This will create a release build with compiler optimizations. If you would like
|
2026-03-03 09:26:50 +01:00
|
|
|
a debug build then pass the `-DCMAKE_BUILD_TYPE=debug` flag to the `cmake`
|
|
|
|
|
command. If you would like to install then run `cmake` with the additional flag
|
|
|
|
|
`-DCMAKE\_INSTALL\_PREFIX=\<install\_dir\>`. If you are installing as a user then
|
|
|
|
|
you may want to set the installation prefix to `/usr/local/`, and if you're
|
2018-03-25 12:30:39 +02:00
|
|
|
packaging then please consult your distribution's policies. With this you
|
|
|
|
|
should be able to run the `make install' target and install the binary.
|
2018-03-25 12:08:19 +02:00
|
|
|
|
2026-03-03 09:26:50 +01:00
|
|
|
## Contributing
|
|
|
|
|
|
2018-03-25 12:08:19 +02:00
|
|
|
If you would like to contribute to the project, send a patch file to my e-mail
|
|
|
|
|
address: <nortega@themusicinnoise.net>.
|
|
|
|
|
|
2026-03-03 09:26:50 +01:00
|
|
|
## License
|
|
|
|
|
|
2018-03-25 12:08:19 +02:00
|
|
|
As educational software, unless otherwise noted, all files are licensed under
|
|
|
|
|
the terms & conditions of the GNU General Public License version 3 or greater
|
|
|
|
|
(see `LICENSE' file for more information).
|