Je veins de tester et ca me fait la même chose.
voici le code de mon ".h":
- include <SDL/SDL.h>
int xpos=0,ypos=0,collide = 0;
SDL_Surface *back;
SDL_Surface *carre;
SDL_Surface *roche;
SDL_Surface *screen;
voici celui de mon .h:
- ifndef ALL_H
- define ALL_H
- include <stdio.h>
- include <stdlib.h>
- include <SDL/SDL.h>
extern int xpos=0,ypos=0,collide = 0;
extern SDL_Surface *back;
extern SDL_Surface *carre;
extern SDL_Surface *roche;
extern SDL_Surface *screen;
int main(int argc, char *argv[]);
int collision();
int initimage();
void drawimage(SDL_Surface *img);
void drawimage(SDL_Surface *img, int x,int y,int w,int h,int x2,int y2);
void drawimage2(SDL_Surface *img, int x,int y,int w,int h,int x2,int y2);
void drawscene();
- endif
J´attend vos réponses