Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef BUBBLE_H_INCLUDED
- #define BUBBLE_H_INCLUDED
- #include "sprite.h"
- #include "constante.h"
- #define BUBBLES_PER_PATTERN 48
- #define BUBBLES_START_X 712
- #define BUBBLES_START_Y 300
- #define BUBBLES_FILENAME "media/gfx/oxygen_bubble.png"
- #define BUBBLE_PATTERN_FILE "blabla.txt"
- /*struct Bubble : public Sprite
- {
- bool on;
- int offsetY;
- Bubble();
- };
- */
- class BubblePattern
- {
- private:
- int nb_bubbles;
- public:
- Sprite bubble_pattern[BUBBLES_PER_PATTERN];
- bool init(const char* filename, float x, float y, bool use_transp);
- void update(double elapsed, const SDL_Event& event);
- void display();
- void cleanup();
- bool collision_with (const Sprite& sprite);
- bool load_pattern(const char* patternfile);
- //BubblePattern();
- };
- #endif // BUBBLE_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement