Changeset 9884 for code/branches/invaders/src
- Timestamp:
- Dec 9, 2013, 2:53:57 PM (11 years ago)
- Location:
- code/branches/invaders/src/modules/invader
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.