Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "menu.h"
- #include "fire.h"
- #include "monster.h"
- #include "player.h"
- #include "invader.h"
- int main()
- {
- Invader game;
- game.SetupLevel();
- while (game.playing)
- {
- game.InputWindow();
- game.Logic();
- game.DisplayWindow();
- SLEEP_THREAD;
- }
- echo();
- nocbreak();
- endwin();
- mciSendString("close intro1_sound", NULL, 0, NULL);
- mciSendString("close intro2_sound", NULL, 0, NULL);
- mciSendString("close shooting_sound", NULL, 0, NULL);
- mciSendString("close b_death_sound", NULL, 0, NULL);
- if (Invader::setLevel != 6)
- {
- std::cout << "\t\t GAME OVER --- YOU LOST";
- std::this_thread::sleep_for(std::chrono::seconds(2));
- }
- else
- {
- std::cout << "W.O.W! Congratulations!! You finally did it! Who would have thought after all these tries!\n\n";
- std::this_thread::sleep_for(std::chrono::seconds(2));
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement