aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-01-03 22:10:27 +0100
committersalaaad2 <arthurdurant263@gmail.com>2022-01-03 22:10:27 +0100
commit0292e135be5f576d14e9589ad0ed8543a03b544c (patch)
treedc8b0ba9c0c566959ea47871119b56d3fd978a57 /src/main.cpp
parentadd circles (diff)
downloadthreshold-0292e135be5f576d14e9589ad0ed8543a03b544c.tar.gz
threshold-0292e135be5f576d14e9589ad0ed8543a03b544c.tar.bz2
threshold-0292e135be5f576d14e9589ad0ed8543a03b544c.tar.xz
threshold-0292e135be5f576d14e9589ad0ed8543a03b544c.tar.zst
threshold-0292e135be5f576d14e9589ad0ed8543a03b544c.zip
balls move yknow
Diffstat (limited to '')
-rw-r--r--src/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index f5a27af..283390a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -18,11 +18,13 @@ int main(void) {
if (IsKeyPressed(KEY_ENTER))
{
gs = GAMEPLAY;
+ game->start();
}
break ;
}
case (GAMEPLAY):
{
+ game->tick();
break ;
}
case (ENDING):
@@ -42,7 +44,8 @@ int main(void) {
}
case (GAMEPLAY):
{
- game->start();
+ game->getKeys();
+ game->draw();
break ;
}
case (ENDING):