Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 4, 2013, 3:58:01 PM (10 years ago)
Author:
zifloria
Message:

Added everything I modified and a few funky things

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/invaders/src/modules/invader/InvaderShip.cc

    r9725 r9744  
    5050
    5151        speed = 500;
     52        isFireing = false;
    5253        damping = 10;
     54
    5355    }
    5456
    5557    void InvaderShip::tick(float dt)
    5658    {
    57         // If the bat is controlled (but not over the network).
     59        // if (camera == NULL)
     60        //     camera = this->getCamera();
     61        // if (camera != NULL)
     62        //     camera->setPosition(Vector3(0, 0, 0) + this->getWorldPosition());
     63
    5864        if (this->hasLocalController())
    5965        {
     
    6975            ControllableEntity::fire(0);
    7076
     77
     78        // camera->setOrientation(Vector3::UNIT_X, Degree(0));
     79
     80
    7181        SUPER(InvaderShip, tick, dt);
    7282    }
     
    7484    void InvaderShip::moveFrontBack(const Vector2& value)
    7585    {
    76         orxout(internal_error) << "move backfront" << value.x << value.y << endl;
     86        // orxout(internal_error) << "move backfront" << value.x << value.y << endl;
    7787        //velocity.y = value.y * speed * 10;
    7888        lastTimeFront = 0;
     
    8292    void InvaderShip::moveRightLeft(const Vector2& value)
    8393    {
    84         orxout(internal_error) << "right left front" << value.x << value.y << endl;
     94        // orxout(internal_error) << "right left front" << value.x << value.y << endl;
    8595        lastTimeLeft = 0;
    8696        desiredVelocity.x = value.x * speed;
Note: See TracChangeset for help on using the changeset viewer.