Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9555


Ignore:
Timestamp:
Mar 19, 2013, 4:12:17 PM (12 years ago)
Author:
smerkli
Message:

Replaced explosion hack with another less ugly hack:

  • There is now one explosion when the level launches at the center of the level instead of one everytime a pawn spawns.

Still ugly though.

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/levels/lastManStanding.oxw

    r9348 r9555  
    133133    </StaticEntity>
    134134
     135<!-- top explosion, this is instantiated here so it does not load all resources
     136     later when the first kill happens. Far away since we don't want to see it -->
     137     <BigExplosion position="1e12,0,0" collisionType=static visible=false >
     138     </BigExplosion>
     139
     140
    135141
    136142<?lua end ?><!-- ---------------asteroid dome END------------------->
  • code/trunk/src/orxonox/worldentities/pawns/Pawn.cc

    r9546 r9555  
    9898
    9999        this->setSyncMode(ObjectDirection::Bidirectional); // needed to synchronise e.g. aimposition
    100 
    101         /* sewper awesome optimization. This loads all the files required for
    102          * the big explosion once in the beginning to make sure the game does
    103          * not start lagging at the first in-action explosion.
    104          */
    105         BigExplosion *chunk = new BigExplosion(this->getCreator());
    106100    }
    107101
Note: See TracChangeset for help on using the changeset viewer.