main.cpp 383 B

123456789101112131415161718192021
  1. #include "Game.h"
  2. int main ( int argc, char** argv )
  3. {
  4. /// [0] Starting
  5. std::cout << "ASCII Space Destroyer starts." << std::endl;
  6. /// [1] Construction
  7. Game myGame;
  8. /// [2] Initialisation
  9. if ( !myGame.init() )
  10. return 1;
  11. /// [3] Procédure
  12. myGame.run();
  13. /// [4] Fin
  14. std::cout << "Programme terminé." << std::endl;
  15. return 0;
  16. }