diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..13fe20f --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ +Debug +obj/*.o +"SDL HEX - code" +"SDL HEX - code.zip" +"sujet 2016.pdf" diff --git a/README.md b/README.md new file mode 100644 index 0000000..c856afa --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# S4-Projet + +Entete de fichier : à décider + +action_plateau : gère les actions du joueur sur la partie plateau, + modifie l'affichage en appelant les fct de affichage_plateau.h + +affichage_menu_principal : affiche le menu principal + +affichage_plateau : affiche le menu principal + +hex.c : main + +menu_principal : gère les actions du joueur sur le menu principal, + modifie l'affichage en appelant les fct de affichage_menu_principal.h + +window.c : gestion de la fenetre (init, resize, quit) \ No newline at end of file diff --git a/bin/hex b/bin/hex new file mode 100644 index 0000000..565776a Binary files /dev/null and b/bin/hex differ diff --git a/makefile b/makefile new file mode 100644 index 0000000..a780255 --- /dev/null +++ b/makefile @@ -0,0 +1,19 @@ +CC=gcc +CFLAGS=-Wall -g -std=c99 -c -lm `sdl-config --cflags --libs` -lSDL_ttf +LDFLAGS=-std=c99 -lm `sdl-config --cflags --libs` -lSDL_ttf +EXEC=bin/hex +SRC=src/hex.c src/affichage_plateau.c src/action_plateau.c src/affichage_menu_principal.c src/window.c src/en_jeu.c +#$(wildcard src/*.c) +OBJ=$(SRC:.c=.o) + +all: $(EXEC) + +src/%.o: src/%.c + $(CC) -o $@ $< $(CFLAGS) + +$(EXEC): $(OBJ) + $(CC) -o $@ $^ $(LDFLAGS) + mv src/*.o obj/ + +clean: + rm -rf src/*.o $(EXEC) \ No newline at end of file diff --git a/ressources/Freeware License.txt b/ressources/Freeware License.txt new file mode 100644 index 0000000..3d2d88e --- /dev/null +++ b/ressources/Freeware License.txt @@ -0,0 +1,5 @@ +This font was found on the internet and did not come with a license. While we try to make sure that all the fonts on fontsquirrel.com are properly licensed for commercial use, there are many fonts that have either been abandoned by their authors or the authors distribute their fonts without an explicit license. + +It is our opinion that if the unlicensed font is freely available for download from either the original source or from multiple free-font sites then we assume it to be safe to use the font commercially. This is no guarantee of such freedom, but there are so many unlicensed free fonts distributed by primary sources that the intentions must be read that the font is free to use how you like. + +We are not lawyers and don't pretend to be them on TV. Please report any errors/violations you know of. http://www.fontsquirrel.com/contact \ No newline at end of file diff --git a/ressources/cac_champagne.ttf b/ressources/cac_champagne.ttf new file mode 100644 index 0000000..5233f99 Binary files /dev/null and b/ressources/cac_champagne.ttf differ