aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-01-07 00:21:25 +0100
committersalaaad2 <arthurdurant263@gmail.com>2022-01-07 00:21:25 +0100
commite5b95c4b1559adac1283360903941350acc72e0e (patch)
tree0da038bed7fd9dba1f60e8296b5fc0a9c54682d1 /src/main.cpp
parentweapon as an abstract class. now make more weapons (diff)
downloadthreshold-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.cpp6
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();