Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. #ifndef GAME_H
  2. #define GAME_H
  3. #include "Player.h"
  4. #include "SDL/SDL.h"
  5. #include "SDL/SDL_image.h"
  6.  
  7. using namespace std;
  8.  
  9. const int Screen_Width = 640;
  10. const int Screen_Height = 480;
  11. const int BPP = 32;
  12. const int FPS = 20;
  13.  
  14. SDL_Surface* screen = NULL;
  15. SDL_Event event;
  16.  
  17. class Game {
  18.  public:
  19.   Game();
  20.   ~Game();
  21.   void run();
  22.   bool init(); //initierar meny och start av spelet
  23.   /* void handle_input(); //sköter tangentbordet*/
  24.   bool load_files();
  25.   void update_on_screen();
  26.   void load_game();
  27.   void clean_up();
  28.   SDL_Surface* load_image(std::string);
  29.   Player player;
  30. };
  31.  
  32. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement