add winning states to menu panel

This commit is contained in:
2026-02-18 21:43:13 +01:00
parent d92391271f
commit 1dad350f7d
2 changed files with 6 additions and 5 deletions

View File

@ -27,10 +27,10 @@ constexpr float ROT_SPEED = 1.0;
// Physics Engine // Physics Engine
constexpr float MASS = 1.0; 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 DAMPENING_CONSTANT = 0.8;
constexpr float REST_LENGTH = 1.1; constexpr float REST_LENGTH = 1.0;
constexpr float REPULSION_FORCE = 0.5; constexpr float REPULSION_FORCE = 0.1;
constexpr float REPULSION_RANGE = 3.0 * REST_LENGTH; constexpr float REPULSION_RANGE = 3.0 * REST_LENGTH;
constexpr float VERLET_DAMPENING = 0.02; // [0, 1] constexpr float VERLET_DAMPENING = 0.02; // [0, 1]

View File

@ -262,8 +262,9 @@ auto Renderer::DrawMenu(const MassSpringSystem &masssprings, int current_preset)
}; };
draw_btn(0, 0, draw_btn(0, 0,
std::format("States: {}, Transitions: {}", masssprings.masses.size(), std::format("States: {}, Transitions: {}, Winning: {}",
masssprings.springs.size()), masssprings.masses.size(), masssprings.springs.size(),
winning_states.size()),
DARKGREEN); DARKGREEN);
draw_btn( draw_btn(
0, 1, 0, 1,