]> git.localhorst.tv Git - sdl-test8.git/blobdiff - src/sdl-test8.cpp
added collision engine, more or less stole gameplay from sdl-test7
[sdl-test8.git] / src / sdl-test8.cpp
diff --git a/src/sdl-test8.cpp b/src/sdl-test8.cpp
new file mode 100644 (file)
index 0000000..ad1e891
--- /dev/null
@@ -0,0 +1,26 @@
+//============================================================================
+// Name        : sdl-test8.cpp
+// Author      : HolySmoke
+// Version     : .3
+// Copyright   : MINE, ALL MINE!
+// Description : Some pong crap supposed to have somewhat realistic physics.
+//============================================================================
+
+#include "app/Application.h"
+#include "pong/Match.h"
+#include "sdl/InitScreen.h"
+#include "sdl/InitSDL.h"
+#include "sdl/InitTTF.h"
+
+int main(int argc, char *argv[]) {
+       const int width(800);
+       const int height(480);
+
+       sdl::InitSDL initSDL;
+       sdl::InitTTF initTTF;
+       sdl::InitScreen initScreen(width, height);
+
+       app::Application a(&initScreen, new pong::Match);
+       a.Run();
+       return 0;
+}