- Timestamp:
- Feb 16, 2018, 12:37:37 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17_merge/src/modules/flappyorx/FlappyOrx.h
r11630 r11755 46 46 { 47 47 struct Circle{ 48 int r;49 int x;50 int y;51 Circle( int new_r, int new_x, int new_y){48 float r; 49 float x; 50 float y; 51 Circle(float new_r, float new_x, float new_y){ 52 52 r=new_r; 53 53 x=new_x; … … 70 70 virtual void death(); 71 71 72 void updatePlayerPos( int x);72 void updatePlayerPos(float x); 73 73 void createAsteroid(Circle &c); 74 void asteroidField( int x, int y, float slope);74 void asteroidField(float x, float y, float slope); 75 75 void spawnTube(); 76 76 … … 89 89 float speedIncrease; 90 90 91 int tubeDistanceBase;92 int tubeDistanceIncrease;93 int tubeDistance;94 int tubeOffsetX;91 float tubeDistanceBase; 92 float tubeDistanceIncrease; 93 float tubeDistance; 94 float tubeOffsetX; 95 95 96 96 int upwardThrust; 97 97 int gravity; 98 98 99 inline void setSpeedBase( int speedBase){ this-> speedBase = speedBase;}99 inline void setSpeedBase(float speedBase){ this-> speedBase = speedBase;} 100 100 inline float getSpeedBase(){ return speedBase;} 101 inline void setSpeedIncrease( int speedIncrease){ this-> speedIncrease = speedIncrease;}101 inline void setSpeedIncrease(float speedIncrease){ this-> speedIncrease = speedIncrease;} 102 102 inline float getSpeedIncrease(){ return speedIncrease;} 103 103 104 inline void setTubeDistanceBase( int tubeDistanceBase){ this-> tubeDistanceBase = tubeDistanceBase;}105 inline int getTubeDistanceBase(){ return tubeDistanceBase;}106 inline void setTubeDistanceIncrease( int tubeDistanceIncrease){ this-> tubeDistanceIncrease = tubeDistanceIncrease;}107 inline int getTubeDistanceIncrease(){ return tubeDistanceIncrease;}104 inline void setTubeDistanceBase(float tubeDistanceBase){ this-> tubeDistanceBase = tubeDistanceBase;} 105 inline float getTubeDistanceBase(){ return tubeDistanceBase;} 106 inline void setTubeDistanceIncrease(float tubeDistanceIncrease){ this-> tubeDistanceIncrease = tubeDistanceIncrease;} 107 inline float getTubeDistanceIncrease(){ return tubeDistanceIncrease;} 108 108 109 109 … … 112 112 bool firstGame; 113 113 std::string sDeathMessage; 114 std::queue< int> tubes; //Saves Position of Tubes114 std::queue<float> tubes; //Saves Position of Tubes 115 115 std::queue<MovableEntity*> asteroids; //Stores Asteroids which build up the tubes 116 116 float speed = 100;
Note: See TracChangeset
for help on using the changeset viewer.