Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2014, 3:40:05 PM (11 years ago)
Author:
sriedel
Message:

Final version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRaceShip.cc

    r10154 r10166  
    4242        RegisterObject(DodgeRaceShip);
    4343
    44         speed = 800;
     44        speed = 830;
    4545        isFireing = false;
    4646        damping = 10;
     
    6868        {
    6969            float dist_y = velocity.y * dt;
    70             float dist_x = velocity.x * dt;
     70            //float dist_x = velocity.x * dt;
    7171            if(dist_y + posforeward > -42*3 && dist_y + posforeward < 42*6)
    7272                posforeward += dist_y;
     
    7575                velocity.y = 0;
    7676                // restart if game ended
    77                 /*
     77/*
    7878                if (getGame())
    7979                    if (getGame()->bEndGame)
     
    8383                    }*/
    8484            }
    85             /*
    86             if (pos.z + dist_x > 42*2.5 || pos.z + dist_x < -42*3)
    87             {
    88                 velocity.x = 0;
    89             }
    90             */
     85
    9186            pos += Vector3(1000 + velocity.y, 0, velocity.x) * dt;
    92         }
    93 
    94         // shoot!
    95         if (isFireing)
    96         {
    97                 //pos += Vector3(900, 0, 0) * dt;
    98             //ControllableEntity::fire(0);
    9987        }
    10088
     
    150138    void DodgeRaceShip::boost(bool bBoost)
    151139    {
    152         //isFireing = bBoost;
     140        //getGame()->bEndGame = bBoost;
    153141    }
    154142
    155143    inline bool DodgeRaceShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)
    156144    {
    157         /*
    158         if (otherObject != NULL && lastEntity != otherObject)
    159         {
    160                 lastEntity = otherObject;
    161                 removeHealth(20);
    162         }
    163                 */
    164145
    165146        removeHealth(100);
Note: See TracChangeset for help on using the changeset viewer.