The Tricycle's Ninja
|
00001 #ifndef _BACKGROUND_H_ 00002 #define _BACKGROUND_H_ 00003 00004 #include <Gosu/Gosu.hpp> 00005 00009 class Background 00010 { 00011 Gosu::Image image; 00012 double posX, posY, velX, velY, angle; 00013 00014 public: 00019 Background(Gosu::Graphics& graphics):image(graphics,Gosu::sharedResourcePrefix() + L"media/menu.png") { 00020 posX = posY = velX = velY = angle = 0; 00021 } 00025 void draw() const 00026 { 00027 image.draw(posX, posY,0); 00028 } 00029 00030 }; 00031 00032 #endif /* _BACKGROUND_H_ */