diff options
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); } |