ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19tb

Dependencies:   mbed

Revision:
18:6be4c3c94a3d
Parent:
17:67dbdfcdcec2
Child:
19:6d9721ffc078
--- a/Sprite/Background.h	Thu May 14 01:07:27 2020 +0000
+++ b/Sprite/Background.h	Thu May 14 03:53:16 2020 +0000
@@ -10,7 +10,7 @@
 
 };
 
-int first_water[4][4] = {
+int first_water[4][84] = {
 
     { 1, 0, 1, 0 },
     { 0, 0, 0, 1 },
@@ -51,12 +51,31 @@
 
 };
 
-class Background {
+class Background 
+{
     public:
     
         Background();
         ~Background();
         
-        //void moveWater();
+    public:
+        int x; // every background is going to have a x pos
+        int row; // row placed in screen   
 };
+
+class Water : public Background
+{
+    public:
+        float speed; // water is a river, so it moves 
+        char c;  // different sprites that cover the entire screen width  
+  
+};
+
+class SafetyLane : public Background
+{
+    public:
+        char c;  // different sprites that cover the entire screen width  
+    
+};
+ 
 #endif
\ No newline at end of file