Files
spaceshipsim/README.md

41 lines
1.3 KiB
Markdown
Raw Normal View History

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:28:44 +01:00
- A C compiler that supports C99 or higher
- CMake 3.10 or higher
- Allegro 5
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
2026-03-03 09:28:44 +01:00
`-DCMAKE_INSTALL_PREFIX=<install_dir>`. If you are installing as a user then
2026-03-03 09:26:50 +01:00
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
2026-03-03 09:30:28 +01:00
address: [nicolas@ortegas.org](mailto:nicolas@ortegas.org).
2018-03-25 12:08:19 +02:00
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
2026-03-03 09:32:08 +01:00
(see the [license file](LICENSE) for more information).