10#include "core/DifficultyType.h"
11#include "settings_common.h"
19 static constexpr SceneSize SCENE_FIXED_SZ = { 1024, 590 };
24 static constexpr unsigned short SCENE_FLUSH_HZ = 16;
30 static constexpr unsigned short GROUND_Y_POS = 450;
35 static constexpr unsigned short GROUND_PEN_WIDTH = 3;
42 static constexpr unsigned short Y_G_APPEND = 1;
45 using DifficultyType = Difficulty;
47 namespace Difficulty {
51 static constexpr DifficultyType START_DIFFICULTY = DifficultyType::EASY;
57 static constexpr unsigned short MAX_OBS_CNT = 5;
58 static_assert(MAX_OBS_CNT >= 4);
63 static constexpr unsigned short INIT_OBS_CNT = 2;
68 static constexpr unsigned short SPEED_EASY = 5;
73 static constexpr unsigned short SPEED_MEDIUM = 8;
78 static constexpr unsigned short SPEED_HARD = 10;
83 static constexpr unsigned short SPEED_MAX = 15;
88 static constexpr unsigned short DEF_SPEED = SPEED_EASY;
93 static constexpr unsigned int INIT_PEROID = 5000;
98 static constexpr unsigned int SIMPLE_PEROID = 5000;
103 static constexpr unsigned int MEDIUM_PEROID = 5000;
108 static constexpr unsigned int HARD_PEROID = 5000;
111 namespace BackGround {
112 namespace RandomLine {
constexpr float phaseMax
phaseMax is the upper bound of phase values (usually 2π).
Definition setting_scene.h:131
constexpr int yOffsetMin
yOffsetMin defines the minimum Y coordinate for drawing line peaks.
Definition setting_scene.h:146
constexpr int minLineLength
minLineLength specifies the minimum length of background line segments.
Definition setting_scene.h:121
constexpr int groundY
groundY is the base Y coordinate for background lines.
Definition setting_scene.h:116
constexpr int maxLineLength
maxLineLength specifies the maximum length of background line segments.
Definition setting_scene.h:126
constexpr float timeFrequency
timeFrequency defines how fast the wave oscillates.
Definition setting_scene.h:141
constexpr float oscillationAmplitude
oscillationAmplitude defines the vertical wave amplitude for lines.
Definition setting_scene.h:136