Changeset 9884 for code/branches
- Timestamp:
- Dec 9, 2013, 2:53:57 PM (11 years ago)
- Location:
- code/branches/invaders
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/invaders/data/levels/Invaders.oxw
r9874 r9884 31 31 skybox = "Orxonox/skyBoxBasic" 32 32 > 33 34 <WorldAmbientSound 35 source="Earth.ogg" 36 looping="true" 37 playOnLoad="true" 38 /> 33 39 34 40 <!-- <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/> --> -
code/branches/invaders/src/modules/invader/InvaderHUDinfo.cc
r9874 r9884 74 74 { 75 75 setPosition(Vector2(0.1, 0.65)); 76 this->setCaption("Game ends in 30 seconds.\nPress (e)xit / (q)uit to go to the main menu.\nTo restart press space.");76 this->setCaption("Game ends in 30 seconds.\nPress (e)xit / (q)uit to go to the main menu.\nTo restart fly out of the screen!"); 77 77 setTextSize(0.05); 78 78 this->InvaderGame->bEndGame = true; -
code/branches/invaders/src/modules/invader/InvaderShip.cc
r9874 r9884 71 71 posforeward += dist_y; 72 72 else 73 { 73 74 velocity.y = 0; 75 // restart if game ended 76 if (getGame()) 77 if (getGame()->bEndGame) 78 { 79 getGame()->start(); 80 return; 81 } 82 } 74 83 if (pos.z + dist_x > 42*2.5 || pos.z + dist_x < -42*3) 75 84 velocity.x = 0; … … 129 138 { 130 139 isFireing = bBoost; 131 // restart if game ended132 if (getGame())133 if (getGame()->bEndGame)134 getGame()->start();135 140 } 136 141 inline bool InvaderShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)
Note: See TracChangeset
for help on using the changeset viewer.