| 123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // constante.h
- // Life
- //
- // Created by Benoit Sida on 2014-06-13.
- // Copyright (c) 2014 Benoit Sida. All rights reserved.
- //
-
- #ifndef Life_constante_h
- #define Life_constante_h
-
- #include <stdlib.h>
- #include <SDL2/SDL.h>
- #include <SDL2_image/SDL_image.h>
-
- #define TAILLE_BLOC 34
- #define NB_BLOCS 12
- #define LARGEUR_ECRAN TAILLE_BLOC*NB_BLOCS
- #define HAUTEUR_ECRAN TAILLE_BLOC*NB_BLOCS
- #define CYCLES 24
- #define WAIT 100
- #define MAXMAP (NB_BLOCS*NB_BLOCS)
- #define SHEETSIZE 16
-
- enum {HAUT, BAS, GAUCHE, DROITE};
-
- typedef struct Sprites Sprites;
- struct Sprites {
- SDL_Surface *menu;
- SDL_Surface *arrow;
- SDL_Surface *cell;
- SDL_Surface *deadcell;
- SDL_Surface *alivecell;
- SDL_Surface *cellsheet;
- SDL_Surface *icon;
- SDL_Rect clip[SHEETSIZE];
- };
-
- #endif
|