Skip to content
Snippets Groups Projects
Commit 611ed922 authored by ColinDrieu's avatar ColinDrieu
Browse files
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
parents fda721bb 0182d794
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -35,28 +35,28 @@
<Linker>
<Add library="SDL" />
<Add library="roxml" />
<Add library="SDL_ttf" />
<Add directory="../Libs/libroxml-2.3.0/Build" />
</Linker>
<Unit filename="../src/AffichageConsole.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="../src/AffichageConsole.h" />
<Unit filename="../src/ClassesXML.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="../src/ClassesXML.h" />
<Unit filename="../src/Interface.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="../src/Interface.h" />
<Unit filename="../src/SDL.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="../src/SDL.h" />
<Unit filename="../src/TerrainsXML.c">
<Unit filename="../src/SDL_bis.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="../src/TerrainsXML.h" />
<Unit filename="../src/affichageConsole2.c">
<Unit filename="../src/TerrainsXML.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="../src/affichageConsole2.h" />
<Unit filename="../src/TerrainsXML.h" />
<Unit filename="../src/carte.c">
<Option compilerVar="CC" />
</Unit>
......@@ -96,9 +96,6 @@
<Unit filename="../src/main.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="../src/mainPartieConsole.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="../src/partie.c">
<Option compilerVar="CC" />
</Unit>
......
......@@ -22,7 +22,7 @@ Tout d'abord il faut installer les dépendences :
Dans un terminal faire :
```{r, engine='bash', count_lines}
sudo apt-get install libcmocka-dev doxygen libsdl1.2-dev codeblocks
sudo apt-get install libcmocka-dev doxygen libsdl1.2-dev libsdl-ttf2.0-dev codeblocks
```
Puis ouvrir le projet Code::Blocks suivant :
......
......@@ -3,10 +3,12 @@
#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
#include "SDL.h"
#include "structures.h"
int SDL_bis()
{ int quitter=0;
EtatsJeu etat=SAISIE_JOUEURS;
SDL_Surface* ecran=NULL;
SDL_Event event;
SDL_Surface* logo = NULL;
......@@ -54,6 +56,15 @@ int SDL_bis()
pos_logo.y=0;
pos_texte.x=(ecran->w-texte->w)/2;
pos_texte.y=ecran->h-200;
SDL_BlitSurface(texte,NULL,ecran,&pos_texte);
SDL_BlitSurface(logo,NULL,ecran,&pos_logo);
SDL_Flip(ecran);
char nom_joueur1[15] = "";
fgets(nom_joueur1, sizeof(nom_joueur1), stdin);
char nom_joueur2[15] = "";
ajouter_joueurs(nom_joueur1,nom_joueur2, &etat); //a coder par colin
while(quitter==0)
{
SDL_WaitEvent(&event);
......
......@@ -51,8 +51,7 @@ typedef enum {faux, vrai} boolean;
* tout réunir dans l'état TOUR_JxPy. Dites moi ce que vous en pensez.
* En tout cas les premiers états jusqu'à CONFIGURATION devraient permettre de rendre la V2.
*/
typedef enum {SAISIE_J1,
SAISIE_J2,
typedef enum {SAISIE_JOUEURS,
LANCEMENT,
CONFIGURATION,
TOUR_J1P1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment