diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-01-07 00:21:25 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-01-07 00:21:25 +0100 |
commit | e5b95c4b1559adac1283360903941350acc72e0e (patch) | |
tree | 0da038bed7fd9dba1f60e8296b5fc0a9c54682d1 /src/main.cpp | |
parent | weapon as an abstract class. now make more weapons (diff) | |
download | threshold-e5b95c4b1559adac1283360903941350acc72e0e.tar.gz threshold-e5b95c4b1559adac1283360903941350acc72e0e.tar.bz2 threshold-e5b95c4b1559adac1283360903941350acc72e0e.tar.xz threshold-e5b95c4b1559adac1283360903941350acc72e0e.tar.zst threshold-e5b95c4b1559adac1283360903941350acc72e0e.zip |
almost there
Diffstat (limited to '')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index a24657d..8456928 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -19,7 +19,7 @@ int main(void) { // Main game loop InitWindow(SCREENWIDTH, SCREENHEIGHT, "WIP -- coolspace"); - Game* game = new Game("../meta/maps/stage_1_boss.bfm"); + Game* game = new Game("../meta/maps/stage_1_start.bfm"); while (!WindowShouldClose()) /* Detect window close button or ESC key */ { switch (gs) { @@ -80,9 +80,9 @@ int main(void) { case (GAMEPLAY): { if (auto code = game->getKeys()) { - if (code == 1) + if (code == 1) // death {gs = ENDING;} - else if (code == 2) + else if (code == 2) // level end {gs = NEXT;} } game->draw(); |