Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef FONCTIONS_H_
- #define FONCTIONS_H_
- #include <stdio.h>
- #include <stdlib.h>
- #include <SDL/SDL.h>
- #include <SDL/SDL_image.h>
- #include <SDL/SDL_mixer.h>
- #include <SDL/SDL_ttf.h>
- #include <time.h>
- #define W_Screen 800
- #define H_Screen 600
- #define SPEED 5
- #define SPRITE_H 148
- #define SPRITE_W 102
- #define MAX_FRAMES 6
- #define W_BackgImg 259
- #define H_BackgImg 194
- typedef struct
- {
- SDL_Rect position_entite;
- SDL_Rect position_map;
- SDL_Rect frame;
- SDL_Rect dst;
- SDL_Surface * image_entite;
- SDL_Surface * spriteleft;
- SDL_Surface * spriteright;
- int pos_alea_max_x;
- int pos_alea_min_x;
- int pos_alea_max_y;
- int pos_alea_min_y;
- int pos_max_x;
- int pos_min_x;
- int pos_max_y;
- int pos_min_y;
- }ent;
- void initialiser_entite(ent *E);
- void animation_entite(ent E);
- #endif /* FONCTIONS_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement