merge + trace fade out fix

This commit is contained in:
Andreas Ortmann 2016-09-29 11:43:00 +02:00
commit 26e1d4fd19
4 changed files with 6 additions and 5 deletions

View file

@ -50,7 +50,6 @@ namespace game {
planets.push_back(new Planet(pos, i, 0.03 + 0.07*util::randf_0_1()));
}
planets.push_back(new Planet(glm::vec2(0.0f, 0.0f), 0, 0.1f));
}
bool State::spawnShipForPlayer(Player *player)

View file

@ -31,7 +31,7 @@ namespace game {
void Trace::addPointFromMissile(bool forceAdd)
{
fidelityCounter++;
if (forceAdd || fidelityCounter >= 20) {
if (forceAdd || fidelityCounter >= 10) {
fidelityCounter = 0;
points.push_back(TracePoint(missile));
}

View file

@ -13,7 +13,7 @@ namespace game {
*/
class Trace {
public:
Trace(Missile *missile, float maxAge=5.0);
Trace(Missile *missile, float maxAge=3.0);
~Trace();
// Add the current position of the missile as a new point on the