aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameplay.cpp
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-01-13 23:07:28 +0100
committersalaaad2 <arthurdurant263@gmail.com>2022-01-13 23:07:28 +0100
commit1d378dbddb1ba06ef9954326eec01f0cb3c33a26 (patch)
tree7e3e5590a9e3e5dc73610e1f9d34006ba5a5e950 /src/gameplay.cpp
parentthis is starting to get boring.ill see (diff)
downloadthreshold-1d378dbddb1ba06ef9954326eec01f0cb3c33a26.tar.gz
threshold-1d378dbddb1ba06ef9954326eec01f0cb3c33a26.tar.bz2
threshold-1d378dbddb1ba06ef9954326eec01f0cb3c33a26.tar.xz
threshold-1d378dbddb1ba06ef9954326eec01f0cb3c33a26.tar.zst
threshold-1d378dbddb1ba06ef9954326eec01f0cb3c33a26.zip
what the fuck is going on
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r--src/gameplay.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp
index b4c6477..49b86cc 100644
--- a/src/gameplay.cpp
+++ b/src/gameplay.cpp
@@ -215,6 +215,10 @@ int Game::tick() {
en->posY += 2.1f;
en->direction.y += 0.1f;
}
+ // if ((GetRandomValue(0, 100) == 50) && (en->currentWeapon != nullptr)) {
+ // std::cout << "spawn enemy" << std::endl;
+ // en->currentWeapon->bang(enemies, &(*en));
+ // }
} else {
if (en->posX >= SCREENWIDTH || en->posX <= 0 ||
en->posY >= SCREENHEIGHT) {