diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-01-04 16:05:26 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-01-04 16:05:26 +0100 |
commit | e31239dda9677731c64952360508476e9891ead9 (patch) | |
tree | 2343074fbea8e5cf9b959d276f89edfa6009d0f6 /src/gameplay.cpp | |
parent | release v0.0.1 (diff) | |
download | threshold-e31239dda9677731c64952360508476e9891ead9.tar.gz threshold-e31239dda9677731c64952360508476e9891ead9.tar.bz2 threshold-e31239dda9677731c64952360508476e9891ead9.tar.xz threshold-e31239dda9677731c64952360508476e9891ead9.tar.zst threshold-e31239dda9677731c64952360508476e9891ead9.zip |
add headers
Diffstat (limited to '')
-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; } |