diff options
Diffstat (limited to 'TestStage.cpp')
-rw-r--r-- | TestStage.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/TestStage.cpp b/TestStage.cpp index fdd833d..e6ff74a 100644 --- a/TestStage.cpp +++ b/TestStage.cpp @@ -24,7 +24,10 @@ TestStage::update(const float dt) enemy.update(dt); m_const.update(dt); bool collided = m_player.collide(m_const.m_bullets); - (void) collided; + if (m_stats) { + m_stats->total_bullets = m_const.m_bullets.size(); + if (collided) m_stats->lifes--; + } } @@ -36,10 +39,3 @@ TestStage::draw() enemy.draw(); m_player.draw(); } - - -int -TestStage::total_bullets() const -{ - return m_const.m_bullets.size(); -} |