Changeset 9961 for code/trunk/src/modules/invader/Invader.cc
- Timestamp:
- Jan 3, 2014, 9:20:39 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/invader/Invader.cc
r9959 r9961 88 88 { 89 89 WeakPtr<BigExplosion> chunk = new BigExplosion(this->center_->getContext()); 90 chunk->setPosition(Vector3(600, 0, 100 * i - 300));90 chunk->setPosition(Vector3(600, 0, 100.f * i - 300)); 91 91 chunk->setVelocity(Vector3(1000, 0, 0)); //player->getVelocity() 92 92 chunk->setScale(20); … … 130 130 newPawn->level = level; 131 131 // spawn enemy at random points in front of player. 132 newPawn->setPosition(player->getPosition() + Vector3(500 + 100 * i, 0, float(rand())/RAND_MAX * 400 - 200));132 newPawn->setPosition(player->getPosition() + Vector3(500.f + 100 * i, 0, float(rand())/RAND_MAX * 400 - 200)); 133 133 } 134 134 }
Note: See TracChangeset
for help on using the changeset viewer.