diff --git a/DogTales/dog/dogtales.cpp b/DogTales/dog/dogtales.cpp index 85d714d..999e06b 100644 --- a/DogTales/dog/dogtales.cpp +++ b/DogTales/dog/dogtales.cpp @@ -18,8 +18,10 @@ void DogTales::tick() { if (ImGui::BeginTabItem("Player")) { bave::im_text("Controller States"); ImGui::Separator(); - bave::im_text("move_x (Press A/D or Left/Right): {:.2f}", m_player.get_controller_state("move_x").value()); - bave::im_text("move_y (Press W/S or Up/Down): {:.2f}", m_player.get_controller_state("move_y").value()); + bave::im_text("move_x (Press A/D or Left/Right): {:.2f}", + m_player.get_controller_state("move_x").value()); + bave::im_text("move_y (Press W/S or Up/Down): {:.2f}", + m_player.get_controller_state("move_y").value()); bave::im_text("Jump (Press 'E'): {:.2f}", m_player.get_controller_state("jump").value()); ImGui::EndTabItem(); } diff --git a/DogTales/dog/player.cpp b/DogTales/dog/player.cpp index e386531..8308277 100644 --- a/DogTales/dog/player.cpp +++ b/DogTales/dog/player.cpp @@ -26,7 +26,9 @@ void Player::tick(bave::Seconds const dt) { void Player::draw(bave::Shader& shader) const { m_sprite.draw(shader); } -std::optional Player::get_controller_state(std::string_view key) const { return m_player_controller.get_controller_state(key); } +std::optional Player::get_controller_state(std::string_view key) const { + return m_player_controller.get_controller_state(key); +} void Player::handle_wall_collision() { auto& position = m_physics.position;