Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 7, 2007, 2:50:47 PM (17 years ago)
Author:
nicolasc
Message:

updated spikeball/spike combo; still need to turn a projectile into a spaceship
swarmmissile turns again, but flickers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/spike_ball.cc

    r10180 r10188  
    6060
    6161  this->angle = 0;
    62   this->rotationSpeed = 0;
     62  this->rotationSpeed = 130;
     63
     64  this->halo = new Billboard();
     65  this->halo->setSize(2, 2);
     66  this->halo->setTexture("hbolt_halo.png");
    6367/*
    64   this->halo = new Billboard();
    65   this->halo->setSize(.35, .35);
    66   this->halo->setTexture("hbolt_halo.png");*/
     68//   this->weaponMan = new WeaponManager(dynamic_cast<WorldEntity*>(this));
     69  this->weaponMan.setParentEntity(this);
     70
     71  Weapon* cannon = new SpikeLauncher();
     72  cannon->setName( "SpikeLauncher");
     73  this->weaponMan.addWeapon(cannon, 0, 0);
     74  this->weaponMan.changeWeaponConfig(0);
     75*/
     76
    6777}
    6878
     
    105115  this->setDamage(5);
    106116  this->setHealth(0);
     117  this->rotationVector = VECTOR_RAND(1);
    107118}
    108119
     
    197208  glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z);
    198209
    199   glRotatef(angle, 1.0, 0.0, 0.0);
     210  glRotatef(angle, this->rotationVector.x, this->rotationVector.y, this->rotationVector.z);
    200211  this->getAbsDir().matrix (matrix);
    201212  glMultMatrixf((float*)matrix);
Note: See TracChangeset for help on using the changeset viewer.