Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <SDL/SDL.h>
- #include "fonctions.h"
- #ifndef screenh
- #include "constantes.h" // Je sais pas comment j'ai fait mais desormais il arrete de beuger !
- #endif
- int zonetouche(surface bloc, SDL_Event event){
- int retur = 0; // Parce que l'on aime quand c'est propre !
- 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){
- retur = 1;
- }
- return retur;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement