Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "SDL/SDL.h"
- class player
- {
- public:
- player (SDL_Event* event, SDL_Surface *img, SDL_Surface *screen);
- void handleinput(SDL_Event aevent);
- void draw(SDL_Surface *target);
- void move();
- SDL_Rect box;
- SDL_Surface *img;
- private:
- SDL_Event *event;
- SDL_Surface *screen;
- int velX;
- int velY;
- int h;
- int w;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement