small refactor
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
#ifndef __CONFIG_HPP_
|
||||
#define __CONFIG_HPP_
|
||||
#ifndef CONFIG_HPP_
|
||||
#define CONFIG_HPP_
|
||||
|
||||
#include <raylib.h>
|
||||
|
||||
@ -12,14 +12,16 @@
|
||||
// Window
|
||||
constexpr int INITIAL_WIDTH = 600;
|
||||
constexpr int INITIAL_HEIGHT = 600;
|
||||
constexpr int MENU_HEIGHT = 350;
|
||||
constexpr int MENU_HEIGHT = 300;
|
||||
constexpr int POPUP_WIDTH = 450;
|
||||
constexpr int POPUP_HEIGHT = 150;
|
||||
|
||||
// Menu
|
||||
constexpr int MENU_PAD = 5;
|
||||
constexpr int BUTTON_PAD = 12;
|
||||
constexpr int MENU_ROWS = 7;
|
||||
constexpr int MENU_COLS = 3;
|
||||
constexpr const char *FONT = "fonts/SpaceMono.ttf";
|
||||
constexpr const char* FONT = "fonts/SpaceMono.ttf";
|
||||
constexpr int FONT_SIZE = 26;
|
||||
|
||||
// Camera Controls
|
||||
@ -38,17 +40,17 @@ constexpr float ROT_SPEED = 1.0;
|
||||
constexpr float CAMERA_SMOOTH_SPEED = 15.0;
|
||||
|
||||
// Physics Engine
|
||||
constexpr float TARGET_UPS = 90; // How often to update physics
|
||||
constexpr float TARGET_UPS = 90; // How often to update physics
|
||||
constexpr float TIMESTEP = 1.0 / TARGET_UPS; // Update interval in seconds
|
||||
constexpr float SIM_SPEED = 4.0; // How large each update should be
|
||||
constexpr float MASS = 1.0; // Mass spring system
|
||||
constexpr float SPRING_CONSTANT = 5.0; // Mass spring system
|
||||
constexpr float DAMPENING_CONSTANT = 1.0; // Mass spring system
|
||||
constexpr float REST_LENGTH = 3.0; // Mass spring system
|
||||
constexpr float VERLET_DAMPENING = 0.05; // [0, 1]
|
||||
constexpr float BH_FORCE = 2.5; // Barnes-Hut [1.0, 3.0]
|
||||
constexpr float THETA = 0.8; // Barnes-Hut [0.5, 1.0]
|
||||
constexpr float SOFTENING = 0.01; // Barnes-Hut [0.01, 1.0]
|
||||
constexpr float SIM_SPEED = 4.0; // How large each update should be
|
||||
constexpr float MASS = 1.0; // Mass spring system
|
||||
constexpr float SPRING_CONSTANT = 5.0; // Mass spring system
|
||||
constexpr float DAMPENING_CONSTANT = 1.0; // Mass spring system
|
||||
constexpr float REST_LENGTH = 3.0; // Mass spring system
|
||||
constexpr float VERLET_DAMPENING = 0.05; // [0, 1]
|
||||
constexpr float BH_FORCE = 2.5; // Barnes-Hut [1.0, 3.0]
|
||||
constexpr float THETA = 0.8; // Barnes-Hut [0.5, 1.0]
|
||||
constexpr float SOFTENING = 0.01; // Barnes-Hut [0.01, 1.0]
|
||||
|
||||
// Graph Drawing
|
||||
constexpr Color EDGE_COLOR = DARKBLUE;
|
||||
@ -70,4 +72,4 @@ constexpr Color BLOCK_COLOR = DARKBLUE;
|
||||
constexpr Color TARGET_BLOCK_COLOR = RED;
|
||||
constexpr Color WALL_COLOR = BLACK;
|
||||
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user