Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. #ifndef BUBBLE_H_INCLUDED
  2. #define BUBBLE_H_INCLUDED
  3.  
  4. #include "sprite.h"
  5. #include "constante.h"
  6.  
  7. #define BUBBLES_PER_PATTERN 48
  8. #define BUBBLES_START_X 712
  9. #define BUBBLES_START_Y 300
  10. #define BUBBLES_FILENAME "media/gfx/oxygen_bubble.png"
  11. #define BUBBLE_PATTERN_FILE "blabla.txt"
  12.  
  13. /*struct Bubble : public Sprite
  14. {
  15. bool on;
  16. int offsetY;
  17. Bubble();
  18. };
  19. */
  20. class BubblePattern
  21. {
  22. private:
  23. int nb_bubbles;
  24.  
  25. public:
  26. Sprite bubble_pattern[BUBBLES_PER_PATTERN];
  27. bool init(const char* filename, float x, float y, bool use_transp);
  28. void update(double elapsed, const SDL_Event& event);
  29. void display();
  30. void cleanup();
  31. bool collision_with (const Sprite& sprite);
  32. bool load_pattern(const char* patternfile);
  33.  
  34. //BubblePattern();
  35. };
  36.  
  37.  
  38.  
  39. #endif // BUBBLE_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement