diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-01-06 21:11:01 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-01-06 21:11:01 +0100 |
commit | a3e3264a73cd82de83799b77bfd64c60d6debbd0 (patch) | |
tree | 71131aadf38e1a0486576fa800056355001b0c04 /src/main.cpp | |
parent | more dynamic and faster enemy movement (diff) | |
download | threshold-a3e3264a73cd82de83799b77bfd64c60d6debbd0.tar.gz threshold-a3e3264a73cd82de83799b77bfd64c60d6debbd0.tar.bz2 threshold-a3e3264a73cd82de83799b77bfd64c60d6debbd0.tar.xz threshold-a3e3264a73cd82de83799b77bfd64c60d6debbd0.tar.zst threshold-a3e3264a73cd82de83799b77bfd64c60d6debbd0.zip |
amazing textures. v0.0.4
Diffstat (limited to '')
-rw-r--r-- | src/main.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
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 ; } |