From 88f5eb3447073fc6a87786da6a9b6b788f9bde66 Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 21 Mar 2020 03:56:19 +0100 Subject: Added basic game init with string and game display --- src/main.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 8960149..3a52cee 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,8 +3,17 @@ int main() { - Game game; - Graphics graphics(game, "mario sokoban", 640, 480); + Game game( + "##########\n" + "# m #\n" + "# * #\n" + "# #\n" + "# U #\n" + "# #\n" + "##########\n" + ); + + Graphics graphics(game, "mario sokoban", 500, 500); while (graphics.isRunning()) graphics.update(); -- cgit