From e31239dda9677731c64952360508476e9891ead9 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Tue, 4 Jan 2022 16:05:26 +0100 Subject: add headers --- src/gameplay.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/gameplay.cpp') 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 @@ -6,7 +14,7 @@ Game::Game(void) { - nEnemies = 9; + nEnemies = 10; enemies = new std::vector(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; } -- cgit v1.2.3