![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
ECE 4180 Final
Dependencies: mbed wave_player mbed-rtos C12832_lcd 4DGL-uLCD-SE LCD_fonts SDFileSystem
Diff: Bubble.hpp
- Revision:
- 19:d65f9fb1023b
- Child:
- 20:7d56cdcbc9a5
diff -r 548fdf1a9736 -r d65f9fb1023b Bubble.hpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Bubble.hpp Fri Dec 06 15:46:16 2019 +0000 @@ -0,0 +1,27 @@ +#ifndef bubble_hpp +#define bubble_hpp + +#include "globals.h" + +class Bubble +{ +public: + Bubble(int x, int y); + void draw(); + void moveDown(); + int getYpos(); + void clear(); + +private: + void update(); + int xpos; + int ypos; + int newypos; + + // these may need to be adjusted to prevent weird visual artifacts if + // bubbles collide + const static int bubbleSpeed = 5; + const static int bubbleRadius = 25; +}; + +#endif //bubble_hpp \ No newline at end of file