Changeset 10603 in orxonox.OLD for branches/cleanup/src/world_entities/projectiles/swarm_projectile.cc
- Timestamp:
- Mar 27, 2007, 7:09:52 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cleanup/src/world_entities/projectiles/swarm_projectile.cc
r10601 r10603 57 57 this->elecDamage = 0; 58 58 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); 61 60 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 66 67 this->angle = 0; 68 67 69 68 70 … … 86 88 // delete this->emitter; 87 89 delete this->trail; 90 delete this->smoke; 88 91 } 89 92 … … 116 119 this->setHealth(10.0* (float)rand()/(float)RAND_MAX); 117 120 118 this->maxVelocity = 300;119 120 this->rotationSpeed = 360;121 // this->maxVelocity = 300; 122 123 // this->rotationSpeed = 360; 121 124 this->angle = 0; 122 125 … … 219 222 220 223 this->trail->tick(time); 224 this->smoke->tick(time); 221 225 222 226 this->angle += this->rotationSpeed * time; … … 278 282 glTranslatef(-.9,0,0); 279 283 this->trail->draw(); 284 glTranslatef( -1.1, 0, 0); 285 this->smoke->draw(); 280 286 glPopMatrix(); 281 287 }
Note: See TracChangeset
for help on using the changeset viewer.