CCIMXDesktop
 
Loading...
Searching...
No Matches
setting_scene.h
Go to the documentation of this file.
1
7#ifndef SETTING_SCENE_H
8#define SETTING_SCENE_H
9
10#include "core/DifficultyType.h"
11#include "settings_common.h"
12
13namespace Settings {
14namespace Scene {
15
19 static constexpr SceneSize SCENE_FIXED_SZ = { 1024, 590 };
20
24 static constexpr unsigned short SCENE_FLUSH_HZ = 16;
25
26 namespace Ground {
30 static constexpr unsigned short GROUND_Y_POS = 450;
31
35 static constexpr unsigned short GROUND_PEN_WIDTH = 3;
36 }
37
38 namespace Grivity {
42 static constexpr unsigned short Y_G_APPEND = 1;
43 }
44
45 using DifficultyType = Difficulty;
46
47 namespace Difficulty {
51 static constexpr DifficultyType START_DIFFICULTY = DifficultyType::EASY;
52
57 static constexpr unsigned short MAX_OBS_CNT = 5;
58 static_assert(MAX_OBS_CNT >= 4);
59
63 static constexpr unsigned short INIT_OBS_CNT = 2;
64
68 static constexpr unsigned short SPEED_EASY = 5;
69
73 static constexpr unsigned short SPEED_MEDIUM = 8;
74
78 static constexpr unsigned short SPEED_HARD = 10;
79
83 static constexpr unsigned short SPEED_MAX = 15;
84
88 static constexpr unsigned short DEF_SPEED = SPEED_EASY;
89
93 static constexpr unsigned int INIT_PEROID = 5000;
94
98 static constexpr unsigned int SIMPLE_PEROID = 5000;
99
103 static constexpr unsigned int MEDIUM_PEROID = 5000;
104
108 static constexpr unsigned int HARD_PEROID = 5000;
109 }
110
111 namespace BackGround {
112 namespace RandomLine {
116 constexpr int groundY = 100;
117
121 constexpr int minLineLength = 4;
122
126 constexpr int maxLineLength = 20;
127
131 constexpr float phaseMax = 6.28f;
132
136 constexpr float oscillationAmplitude = 2.5f;
137
141 constexpr float timeFrequency = 4.0f;
142
146 constexpr int yOffsetMin = groundY + 1;
147 }
148 }
149
150}
151}
152
153#endif // SETTING_SCENE_H
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