00001 // --------------------------------------------------------------------------- 00002 // PLATFORM: All - 00003 // PRODUCT: Fourplay - 00004 // VISIBILITY: Public - 00005 // --------------------------------------------------------------------------- 00006 // - 00007 // PURPOSE: Background for the game. Contains static hills and - 00008 // scrolling clouds. - 00009 // - 00010 // --------------------------------------------------------------------------- 00011 00012 #ifndef BACKGROUND_H 00013 #define BACKGROUND_H 00014 00015 #include "GameConstants.h" 00016 #include "Iw2D.h" 00017 00022 class Background 00023 { 00024 public: 00029 Background(CIwFVec2 screenDimensions); 00030 00034 ~Background(); 00035 00040 void Update(double deltaTime); 00041 00045 void Draw(); 00046 00047 protected: 00049 CIw2DImage *m_hillsImage; 00050 00052 CIw2DImage *m_cloudsImage; 00053 00055 CIwFVec2 m_screenDimensions; 00056 00058 CIwFVec2 m_cloudPos; 00059 00061 float m_cloudSpeed; 00062 00064 static const int m_cloudY = 100; 00065 }; 00066 00067 #endif