Mario-Sokoban from the OpenClassroom C Lesson exercice.

constantes.h 483B

123456789101112131415161718192021
  1. //
  2. // constantes.h
  3. // Mario Sokoban
  4. //
  5. // Created by Benoit Sida on 2014-02-16.
  6. // Copyright (c) 2014 Benoit Sida. All rights reserved.
  7. //
  8. #ifndef Mario_Sokoban_constantes_h
  9. #define Mario_Sokoban_constantes_h
  10. #define TAILLE_BLOC 34
  11. #define NB_BLOCS_LARGEUR 12
  12. #define NB_BLOCS_HAUTEUR 12
  13. #define LARGEUR_ECRAN TAILLE_BLOC*NB_BLOCS_LARGEUR
  14. #define HAUTEUR_ECRAN TAILLE_BLOC*NB_BLOCS_HAUTEUR
  15. enum {HAUT,BAS,GAUCHE,DROITE};
  16. enum {VIDE, WALL, BOX, TARGET, MARIO, BOX_OK};
  17. #endif