Commit 5f767383 authored by Pierre TESSIER's avatar Pierre TESSIER

Added health display

parent 512367d5
......@@ -118,7 +118,8 @@ void scene_model::set_gui()
ImGui::SliderFloat("Time scale", &m_timer.scale, 0.1f, 3.0f);
std::ostringstream stream;
stream << "Score: " << m_score << ", Wave number " << m_waveNumber;
stream << "Score: " << m_score << ", Wave number " << m_waveNumber << std::endl;
stream << "Current health: " << m_ecs.get<CharacterDesignComponent>(m_player).currentHealth << std::endl;
ImGui::Spacing();
ImGui::Text(stream.str().c_str());
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment