Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 4, 2017, 4:17:43 PM (6 years ago)
Author:
vyang
Message:

Asteroiden werden generiert und bewegen sich, HUD muss noch angepasst werden, Punkte und Health und Leben anzeigen. Raumschiff kann noch nicht schiessen, evtl auch Schutzfunktion → nachdem ein Leben verloren wurde 2s Immunitaet?

File:
1 edited

Legend:

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

    r11617 r11637  
    3737
    3838#include "Asteroids2DShip.h"
     39#include "Asteroids2DStone.h"
    3940#include "core/CoreIncludes.h"
    4041
     
    8990    }
    9091
    91 /*    void Asteroids2DShip::moveFrontBack(const Vector2& value)
    92     {
    93         //lastTimeFront = 0;
    94         //desiredVelocity.y = value.y * speed * 42;
    95         orxout() << "FrontBack" << endl;
    96         SUPER(Asteroids2DShip, moveFrontBack, value);
    97     }
    98 
    99     void Asteroids2DShip::moveRightLeft(const Vector2& value)
    100     {
    101         //lastTimeLeft = 0;
    102         //desiredVelocity.x = value.x * speed;
    103         orxout() << "RightLeft" << endl;
    104         SUPER(Asteroids2DShip, moveFrontBack, value);       
    105     }
    106  */
    10792    void Asteroids2DShip::boost(bool bBoost)
    10893    {
     
    11297    inline bool Asteroids2DShip::collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint)
    11398    {
    114 
    11599        removeHealth(100);
    116         this->death();
     100        getGame()->addPoints(10);
    117101        return false;
    118102    }
Note: See TracChangeset for help on using the changeset viewer.