Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 3, 2014, 2:35:54 PM (11 years ago)
Author:
fvultier
Message:

Steuerung funktioniert

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickupsFS14/src/modules/jump/JumpShip.h

    r10005 r10017  
    5656            // Starts or stops fireing
    5757            virtual void boost(bool bBoost);
    58 
     58*/
    5959            //no rotation!
    6060            virtual void rotateYaw(const Vector2& value){};
    6161            virtual void rotatePitch(const Vector2& value){};
    6262            //return to main menu if game has ended.
    63             virtual void rotateRoll(const Vector2& value){if (getGame()) if (getGame()->bEndGame) getGame()->end();};
     63            virtual void rotateRoll(const Vector2& value){};
    6464
    65             virtual void updateLevel();
     65            /*virtual void updateLevel();
    6666
    6767            virtual inline bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint);
     
    7272            WeakPtr<Jump> getGame();
    7373            WeakPtr<Jump> game;
    74             //Camera* camera;
     74            WeakPtr<Camera> camera;
     75            const float xVelocity = 150.0f;
     76            const float xBoundary = 200.0f;
     77
     78
    7579            //bool isFireing;
    7680            //float speed;
     
    9094            } velocity, desiredVelocity;*/
    9195
    92             bool left;
    93             bool right;
     96            bool leftPressed;
     97            bool rightPressed;
     98            bool upPressed;
     99            bool downPressed;
    94100
    95 
    96 
     101            float yScreenPosition;
     102            float yVelocity;
     103            const float yAcceleration = 10.0f;
     104            const float ySpeedAfterJump = 300.0f;
    97105    };
    98106}
Note: See TracChangeset for help on using the changeset viewer.