Black&White Game of Life with SDL

constante.h 502B

1234567891011121314151617181920212223242526
  1. //
  2. // constante.h
  3. // Life
  4. //
  5. // Created by Benoit Sida on 2014-06-13.
  6. // Copyright (c) 2014 Benoit Sida. All rights reserved.
  7. //
  8. #ifndef Life_constante_h
  9. #define Life_constante_h
  10. #include <stdlib.h>
  11. #include <SDL2/SDL.h>
  12. #include <SDL2_image/SDL_image.h>
  13. #define TAILLE_BLOC 34
  14. #define NB_BLOCS 12
  15. #define LARGEUR_ECRAN TAILLE_BLOC*NB_BLOCS
  16. #define HAUTEUR_ECRAN TAILLE_BLOC*NB_BLOCS
  17. #define CYCLES 20
  18. #define WAIT 0
  19. #define MAXMAP (NB_BLOCS*NB_BLOCS)
  20. enum {HAUT, BAS, GAUCHE, DROITE};
  21. #endif