gravite Code
Status: Pre-Alpha
Brought to you by:
thelothelo
********************************************************************************************************
Copyright (C) 2025 Michel Zivy
Gravite program. This program codes a game in which the player pilots a rocket to dock with a space station and enter orbit.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
********************************************************************************************************
Comment jouer à Gravite
1.Installer les dépendances nécessaires
- imagemagick (sudo apt install imagemagick)
- ffmpeg (sudo apt install ffmpeg)
2. Télécharger le fichier gravite-fmod.tar.gz
3. Décompresser (extraire) gravite-fmod.tar.gz sur votre ordinateur
4. Déplacez vous dans le dossier décompressé et ouvrez le terminal à cet emplacement
5. Lancez la commande $ ./gravite params_lune.txt
6. Comme indiqué sur l'écran d'accueil, Pressez Y pour démarrer la partie
Comment participer au développement de Gravite
1. Créez un Fork de Gravite sur l'interface utilisateur de SourceForge
2. Clonez le Fork sur votre ordinateur
3. Développez/documentez/modifiez
4. Compilez pour vérifier le bon fonctionnement de vos développements
a. Installer les dépendances pour compiler
- sudo apt install libx11-dev
- sudo apt install libpng-dev
b. Compilez
- $ g++ -pthread -O2 -c gravite.cpp Vaisseau.cpp gravite_functions.cpp -Wl,-rpath=FMOD-stuff/lib/x86_64/ -I FMOD-stuff/inc -L/usr/X11R6/lib -lm -lpthread -lX11 -lpng -lz
- $ g++ -o gravite gravite.o Vaisseau.o gravite_functions.o FMOD-stuff/lib/x86_64/libfmod.so -Wl,-rpath=FMOD-stuff/lib/x86_64/ -I FMOD-stuff/inc -L/usr/X11R6/lib -lm -lpthread -lX11 -lpng -lz
ou bien:
$ make
ou
$ make DBG=yes
5. Lancez la commande $ ./gravite params_lune.txt et jouez à Gravite
6. Pushez votre code sur votre repo
7. Créer une merge Request vers le dépot originel