feature/imgui-sdl
points-test
Last change
on this file since e8ebc76 was e8ebc76, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago |
Create main.cpp to hold the initial startup code and (eventually) the CrashLogger wrapper and create a SpaceGame class to hold the rendering and game logic
|
-
Property mode
set to
100644
|
File size:
477 bytes
|
Line | |
---|
1 | #include "space-game.hpp"
|
---|
2 |
|
---|
3 | #include <iostream>
|
---|
4 |
|
---|
5 | using namespace std;
|
---|
6 |
|
---|
7 | int main(int argc, char* argv[]) {
|
---|
8 |
|
---|
9 | #ifdef NDEBUG
|
---|
10 | cout << "DEBUGGING IS OFF" << endl;
|
---|
11 | #else
|
---|
12 | cout << "DEBUGGING IS ON" << endl;
|
---|
13 | #endif
|
---|
14 |
|
---|
15 | cout << "Starting Space Game..." << endl;
|
---|
16 |
|
---|
17 | SpaceGame game;
|
---|
18 |
|
---|
19 | try {
|
---|
20 | game.run();
|
---|
21 | } catch (const exception& e) {
|
---|
22 | cerr << e.what() << endl;
|
---|
23 | return EXIT_FAILURE;
|
---|
24 | }
|
---|
25 |
|
---|
26 | cout << "Finished running the game" << endl;
|
---|
27 |
|
---|
28 | return EXIT_SUCCESS;
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.