- Timestamp:
- Nov 13, 2017, 4:05:34 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Asteroid_HS17/src/modules/asteroids/AsteroidsShip.h
r11541 r11555 53 53 virtual void tick(float dt) override; 54 54 55 // 55 //overwrite for 2d movement 56 56 virtual void moveFrontBack(const Vector2& value) override; 57 57 virtual void moveRightLeft(const Vector2& value) override; 58 virtual void moveUpDown(const Vector2& value) override;59 58 60 59 // Starts or stops fireing 61 virtual void boost(bool bBoost) override;60 //virtual void boost(bool bBoost) override; 62 61 63 62 … … 69 68 70 69 bool bEndGame; 71 bool bShowLevel;72 70 int lives; 73 float angle, radius;74 float damping , posforeward;71 float direction; 72 float damping; 75 73 bool isFireing; 76 float dx, dy;77 74 const float maxspeed = 500; 78 const float cameradistance = 100; 75 79 76 80 77 //Nachschauen wie gross das Spielfeld ist! … … 91 88 WeakPtr<Asteroids> game; 92 89 WeakPtr<WorldEntity> lastEntity; 93 Camera* camera;94 90 float lastTimeFront, lastTimeLeft, lastTime; 95 struct Vector 96 { 97 float x; 98 float y; 99 }force, velocity 91 92 //Controller 93 bool moveUpPressed_, moveDownPressed_, moveRightPressed_, moveLeftPressed_; 100 94 101 95 };
Note: See TracChangeset
for help on using the changeset viewer.