cleanup flake

This commit is contained in:
2026-02-22 13:48:22 +01:00
parent 9446e1b86c
commit 0083143268
7 changed files with 287 additions and 394 deletions

View File

@ -26,11 +26,6 @@
// - Click states to display them in the board
// - Find shortest path to any winning state and mark it in the graph
// - Also mark the next move along the path on the board
// TODO: Don't tie the simulation step resolution to the FPS (frametime)
// - This breaks the simulation on slower systems
// - Add a modifiable speed setting?
// - Clamp the frametime?
// - Use a fixed step size and control how often it runs per frame?
auto main(int argc, char *argv[]) -> int {
// if (argc < 2) {
@ -43,7 +38,7 @@ auto main(int argc, char *argv[]) -> int {
#endif
// RayLib window setup
// SetTraceLogLevel(LOG_ERROR);
SetTraceLogLevel(LOG_ERROR);
// SetConfigFlags(FLAG_VSYNC_HINT);
SetConfigFlags(FLAG_MSAA_4X_HINT);
SetConfigFlags(FLAG_WINDOW_RESIZABLE);

View File

@ -1,7 +1,6 @@
#include "renderer.hpp"
#include <algorithm>
#include <cstring>
#include <format>
#include <raylib.h>
#include <raymath.h>
@ -12,6 +11,10 @@
#include "klotski.hpp"
#include "mass_springs.hpp"
#ifdef BATCHING
#include <cstring>
#endif
auto OrbitCamera3D::Update(const Mass &current_mass) -> void {
Vector2 mouse = GetMousePosition();
if (mouse.x >= GetScreenWidth() / 2.0 && mouse.y >= MENU_HEIGHT) {