diff options
author | Aki <please@ignore.pl> | 2022-04-19 23:48:20 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-19 23:48:20 +0200 |
commit | 5f0c15b2d3299ea210a78d54e9b10c3cb4266139 (patch) | |
tree | 137190dde6dcab1951301f1a2ac1db8481878f5a /Falling.cpp | |
parent | 78097b5496209b56cef9d7fc8d6c13e4c87e0eb1 (diff) | |
download | bullethell2022-5f0c15b2d3299ea210a78d54e9b10c3cb4266139.zip bullethell2022-5f0c15b2d3299ea210a78d54e9b10c3cb4266139.tar.gz bullethell2022-5f0c15b2d3299ea210a78d54e9b10c3cb4266139.tar.bz2 |
Created factory to handle enemy creation
Diffstat (limited to 'Falling.cpp')
-rw-r--r-- | Falling.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Falling.cpp b/Falling.cpp index 8547ee2..deb81a4 100644 --- a/Falling.cpp +++ b/Falling.cpp @@ -6,7 +6,7 @@ Falling::Falling() : - m_speed {30} + m_speed {40} { } @@ -14,6 +14,7 @@ Falling::Falling() : void Falling::update(const float dt, Vector2& position, Generator& generator) { - (void) generator; position.y += dt * m_speed; + if (position.y > 600) + generator.toggle(false); } |