Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 13, 2017, 4:05:34 PM (8 years ago)
Author:
vyang
Message:

Level file: korrekte Kameraposition, Raumschiff bewegt sich nicht, schiesst aber → wird AsteroidsShip ueberhaupt geladen? AsteroidsShip: neue Steuerung (vgl Jump, Rotation muss noch angepasst werden)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Asteroid_HS17/src/modules/asteroids/AsteroidsShip.h

    r11541 r11555  
    5353            virtual void tick(float dt) override;
    5454
    55             // overwrite for 2d movement
     55            //overwrite for 2d movement
    5656            virtual void moveFrontBack(const Vector2& value) override;
    5757            virtual void moveRightLeft(const Vector2& value) override;
    58             virtual void moveUpDown(const Vector2& value) override;
    5958
    6059            // Starts or stops fireing
    61             virtual void boost(bool bBoost) override;
     60            //virtual void boost(bool bBoost) override;
    6261
    6362
     
    6968
    7069            bool bEndGame;
    71             bool bShowLevel;
    7270            int lives;
    73             float angle, radius;
    74             float damping, posforeward;
     71            float direction;
     72            float damping;
    7573            bool isFireing;
    76             float dx, dy;
    7774            const float maxspeed = 500;
    78             const float cameradistance = 100;
     75
    7976
    8077            //Nachschauen wie gross das Spielfeld ist!
     
    9188            WeakPtr<Asteroids> game;
    9289            WeakPtr<WorldEntity> lastEntity;
    93             Camera* camera;
    9490            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_;
    10094           
    10195    };
Note: See TracChangeset for help on using the changeset viewer.