From a3e3264a73cd82de83799b77bfd64c60d6debbd0 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Thu, 6 Jan 2022 21:11:01 +0100 Subject: amazing textures. v0.0.4 --- src/main.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index d014fdb..a24657d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -13,12 +13,13 @@ gameState gs = TITLE; -Game* game = new Game("../meta/maps/stage_1_start.bfm"); int main(void) { initWindow(); // Main game loop + InitWindow(SCREENWIDTH, SCREENHEIGHT, "WIP -- coolspace"); + Game* game = new Game("../meta/maps/stage_1_boss.bfm"); while (!WindowShouldClose()) /* Detect window close button or ESC key */ { switch (gs) { @@ -56,12 +57,10 @@ int main(void) { if (IsKeyPressed(KEY_ENTER)) { gs = TITLE; - auto next = game->getNext(); + auto current = game->getCurrent(); delete game; CloseAudioDevice(); - if (next != "0") { - game = new Game("../meta/maps/stage_1_start.bfm"); - } + game = new Game(current); } break ; } -- cgit v1.2.3