Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 27, 2007, 7:09:52 PM (18 years ago)
Author:
nicolasc
Message:

minor improments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cleanup/src/world_entities/projectiles/swarm_projectile.cc

    r10601 r10603  
    5757  this->elecDamage = 0;
    5858
    59   this->trail = new Trail(2.5,4,.2, this);
    60   //this->trail->setParent( this);
     59  this->trail = new Trail(2.5, 4, .2, this);
    6160  this->trail->setTexture( "textures/laser.png");
    62  
    63   this->maxVelocity = 300;
    64 
    65   this->rotationSpeed = 360;
     61
     62//   this->maxVelocity = 300;
     63
     64  this->smoke = new Trail(20, 10, .3, this);
     65  this->smoke->setTexture ("textures/engine.png");
     66
    6667  this->angle = 0;
     68
    6769
    6870
     
    8688  // delete this->emitter;
    8789  delete this->trail;
     90  delete this->smoke;
    8891}
    8992
     
    116119  this->setHealth(10.0* (float)rand()/(float)RAND_MAX);
    117120
    118   this->maxVelocity = 300;
    119 
    120   this->rotationSpeed = 360;
     121//   this->maxVelocity = 300;
     122
     123//   this->rotationSpeed = 360;
    121124  this->angle = 0;
    122125
     
    219222
    220223  this->trail->tick(time);
     224  this->smoke->tick(time);
    221225
    222226  this->angle += this->rotationSpeed * time;
     
    278282  glTranslatef(-.9,0,0);
    279283  this->trail->draw();
     284  glTranslatef( -1.1, 0, 0);
     285  this->smoke->draw();
    280286  glPopMatrix();
    281287}
Note: See TracChangeset for help on using the changeset viewer.