Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. #include <SDL/SDL.h>
  2. #include "fonctions.h"
  3.  
  4. #ifndef screenh
  5. #include "constantes.h" // Je sais pas comment j'ai fait mais desormais il arrete de beuger !
  6. #endif
  7.  
  8.  
  9.  
  10.  
  11. int zonetouche(surface bloc, SDL_Event event){
  12.     int retur = 0; // Parce que l'on aime quand c'est propre !
  13.     if(event.button.x < bloc.position.x + bloc.surface->w && bloc.position.x < event.button.x && event.button.y < bloc.position.y + bloc.surface->h && bloc.position.y < event.button.y){
  14.         retur = 1;
  15.     }
  16.     return retur;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement