main.cpp 520 B

12345678910111213141516171819202122232425262728
  1. // Includes
  2. #include <iostream>
  3. #include "GameCore.h"
  4. using namespace std;
  5. int main() {
  6. // Start
  7. cout << "TinyShooter starts." << endl;
  8. // Random start
  9. srand((unsigned int) time(0));
  10. // Initialisation
  11. GameCore tinyShooter;
  12. if (!tinyShooter.initialize()){
  13. cout << "TinyShooter has encountered a problem." << endl;
  14. cout << "Ask Jovian to debug his program ..." << endl;
  15. return 1;
  16. }
  17. // QuickGame
  18. tinyShooter.startQuickGame();
  19. // End
  20. return 0;
  21. }