diff options
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r-- | src/gameplay.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp index 16fc240..15f96bd 100644 --- a/src/gameplay.cpp +++ b/src/gameplay.cpp @@ -1,3 +1,11 @@ +/*********************************/ +/* THRESHOLD ( // */ +/* gameplay ( )/ */ +/* by salade )(/ */ +/* ________________ ( /) */ +/* ()__)____________))))) :^} */ +/*********************************/ + #include "gameplay.hpp" #include <iostream> @@ -6,7 +14,7 @@ Game::Game(void) { - nEnemies = 9; + nEnemies = 10; enemies = new std::vector<Entity>(nEnemies); player = new Entity; @@ -45,8 +53,6 @@ int Game::tick() const { for (auto & en : *enemies) { - if (!en.hp) - { continue ; } if (en.posX >= SCREENWIDTH || en.posX <= 0) { en.direction.x = -en.direction.x; } |