Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 30, 2017, 6:34:56 PM (6 years ago)
Author:
vyang
Message:

Geschwindigkeit im Level angepasst, Raumschiff kann das Spielfeld nicht mehr verlassen. TO DO: Rausfinden wie Rotation funktioniert → in Asteroid2DShip Funktionen Yaw, Pitch, Roll ueberladen oder im Levelfile anpassen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Asteroid_HS17/src/modules/asteroids2D/Asteroids2DShip.h

    r11608 r11613  
    4545//#include "Asteroids2DCenterPoint.h"
    4646
     47#include "tools/Timer.h"
     48
     49
    4750namespace orxonox
    4851{
     
    6164            virtual void boost(bool bBoost) override;
    6265
    63             //no rotation!
    64             virtual void rotateYaw(const Vector2& value) override{};
    65             virtual void rotatePitch(const Vector2& value) override{};
     66            //no rotation in x and z direction!
     67            virtual void rotateYaw(const Vector2& value) override{}; // Rotate in yaw direction.
     68            virtual void rotatePitch(const Vector2& value) override{}; // Rotate in pitch direction.
     69            virtual void rotateRoll(const Vector2& value) override{}; // Rotate in roll direction.
    6670
    67             //return to main menu if game has ended.
    68             virtual void rotateRoll(const Vector2& value) override{if (getGame()) if (getGame()->bEndGame) getGame()->end();};
     71
    6972
    7073            virtual void updateLevel();
     
    7477            float speed, damping, posforeward;
    7578            bool isFireing;
     79            void showposition();
    7680
    7781        protected:
     
    8084        private:
    8185            Asteroids2D* getGame();
     86            float width, height;
    8287            WeakPtr<Asteroids2D> game;
    8388            WeakPtr<WorldEntity> lastEntity;
     
    8994            } velocity, desiredVelocity;
    9095
     96            Timer timer;
    9197    };
    9298}
Note: See TracChangeset for help on using the changeset viewer.