From 1dad350f7d05d02c5111dcc06969d17a5cdb9f99 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Wed, 18 Feb 2026 21:43:13 +0100 Subject: [PATCH] add winning states to menu panel --- include/config.hpp | 6 +++--- src/renderer.cpp | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/config.hpp b/include/config.hpp index 355b431..605e504 100644 --- a/include/config.hpp +++ b/include/config.hpp @@ -27,10 +27,10 @@ constexpr float ROT_SPEED = 1.0; // Physics Engine constexpr float MASS = 1.0; -constexpr float SPRING_CONSTANT = 1.5; +constexpr float SPRING_CONSTANT = 1.0; constexpr float DAMPENING_CONSTANT = 0.8; -constexpr float REST_LENGTH = 1.1; -constexpr float REPULSION_FORCE = 0.5; +constexpr float REST_LENGTH = 1.0; +constexpr float REPULSION_FORCE = 0.1; constexpr float REPULSION_RANGE = 3.0 * REST_LENGTH; constexpr float VERLET_DAMPENING = 0.02; // [0, 1] diff --git a/src/renderer.cpp b/src/renderer.cpp index c00d9cf..f1337a3 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp @@ -262,8 +262,9 @@ auto Renderer::DrawMenu(const MassSpringSystem &masssprings, int current_preset) }; draw_btn(0, 0, - std::format("States: {}, Transitions: {}", masssprings.masses.size(), - masssprings.springs.size()), + std::format("States: {}, Transitions: {}, Winning: {}", + masssprings.masses.size(), masssprings.springs.size(), + winning_states.size()), DARKGREEN); draw_btn( 0, 1,