Skip to content

Commit

Permalink
Add Stage Width Multiplier
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleYang0531 committed Nov 15, 2023
1 parent cd92f12 commit 85e2131
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
Binary file modified dist/EngineConfiguration
Binary file not shown.
Binary file modified dist/EngineData
Binary file not shown.
18 changes: 14 additions & 4 deletions engine/configuration/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Options {
int SplitLine = 5; // Supported
int SyncLine = 6; // Supported
int LockAspectRatio = 7; // Supported

int ExtraWidth = 8;
}Options;

auto options = defineOptions<class Options>({
Expand Down Expand Up @@ -44,7 +44,7 @@ auto options = defineOptions<class Options>({
def: 0,
min: 0,
max: 1,
step: 0.01,
step: 0.05,
unit: UnitText.Percentage,
}, {
name: "Split Random Fall (not implement yet)",
Expand All @@ -60,7 +60,7 @@ auto options = defineOptions<class Options>({
def: 1,
min: 0,
max: 1,
step: 0.01,
step: 0.05,
unit: UnitText.Percentage,
}, {
name: NameText.SimultaneousLineVisibility,
Expand All @@ -74,5 +74,15 @@ auto options = defineOptions<class Options>({
standard: 0,
type: OptionType.Toggle,
def: 1,
}
}, {
name: "Stage Width Multiplier",
scope: Scope,
standard: 0,
type: OptionType.Slider,
def: 1.0,
min: 0.5,
max: 3.0,
step: 0.05,
unit: UnitText.Percentage
}
});
6 changes: 3 additions & 3 deletions engine/data/constants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const var judgeBadRatio = 163.0 / 76.0; // 判定文字 Bad 比例
const var judgeMissRatio = 177.0 / 76.0; // 判定文字 Miss 比例
const var judgeAutoRatio = 216.0 / 76.0; // 判定文字 Auto 比例
const var judgeTextHeight = 0.15; // 判定文字高度
const var judgeTextDuration = 0.2;
const var judgeTextDuration = 0.2; // 判定文字动画时长

class Vec {
public:
Expand All @@ -61,7 +61,7 @@ class stage {
public:

const var w = IF (LevelOption.get(Options.LockAspectRatio) == 0 || screen.aspectRatio < targetAspectRatio) {
screen.w
screen.w * LevelOption.get(Options.ExtraWidth)
} ELSE {
screen.h * targetAspectRatio
} FI;
Expand Down Expand Up @@ -190,4 +190,4 @@ class line {

auto splitLineMemory = Array<EntityMemoryId>(16);
Variable<LevelMemoryId> currentJudge;
Variable<LevelMemoryId> currentJudgeStartTime;
Variable<LevelMemoryId> currentJudgeStartTime;
Binary file modified main
Binary file not shown.

0 comments on commit 85e2131

Please sign in to comment.