Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 17, 2008, 3:33:03 PM (16 years ago)
Author:
landauf
Message:
  • added a backlight to all SpaceShips, leaving a trail behind (configurable)
  • changed some lines in SpaceShipAI, AI seems to be more fair now…
  • fixed a bug in Math.cc algorithms to calculate radar positions and AI movement (division by zero and acos of 1.000001)
  • added destroy() and destroydelay to ParticleSpawner, so the smoketrail of a destroyed enemy stays visible for some seconds
  • added 2 lines to Orxonox.cc to make the length of the backlight-trail independend of the gamespeed

########################
# !!! MEDIA UPDATE !!! #
########################

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/Orxonox.cc

    r1577 r1608  
    7272#include "console/InGameConsole.h"
    7373#include "objects/Tickable.h"
     74#include "objects/Backlight.h"
    7475#include "tools/ParticleInterface.h"
    7576
     
    169170    float change = factor / Orxonox::getSingleton()->getTimeFactor();
    170171    Orxonox::getSingleton()->timefactor_ = factor;
    171 
    172172    for (Iterator<ParticleInterface> it = ObjectList<ParticleInterface>::begin(); it; ++it)
    173173        it->setSpeedFactor(it->getSpeedFactor() * change);
     174
     175    for (Iterator<Backlight> it = ObjectList<Backlight>::begin(); it; ++it)
     176        it->setTimeFactor(Orxonox::getSingleton()->getTimeFactor());
    174177  }
    175178
Note: See TracChangeset for help on using the changeset viewer.