Skip to content

Commit

Permalink
Update SUS->TXT & Flick Judgement
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleYang0531 committed Jan 21, 2024
1 parent 9d2ec1f commit 020e519
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion convert.h
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,9 @@ string fromSUS(string text) {
string head = get<0>(x), body = get<3>(x);
string prop = head.substr(3);
if (prop[0] == '5') {
ScratchSlide = true, ScratchType = (i == l ? 0 : (i < l ? i - r - 1 : i - l + 1));
ScratchSlide = true, ScratchType = (i == l ? (
(body[0] == '3' ? -(r - l + 1) : (body[0] == '4' ? (r - l + 1) : 0))
) : (i < l ? i - r - 1 : i - l + 1));
x = {get<0>(x), magicNumber, get<2>(x), get<3>(x)};
}
}
Expand Down
Binary file modified dist/EngineData
Binary file not shown.
2 changes: 1 addition & 1 deletion engine/play/InputManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ SonolusApi getClaimedStart(let index) {
// return VOID;
// }

double minFlickVR = 0.5;
double minFlickVR = 0.1;
// Map<LevelMemoryId, var, var> usedTouchId(16);
SonolusApi findFlickTouch(let lane, let enLane) {
FUNCBEGIN
Expand Down
2 changes: 1 addition & 1 deletion engine/preview/holdNotes/ScratchHoldEnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class SiriusScratchHoldEnd: public Archetype {
SonolusApi render() {
FUNCBEGIN
IF (noteId % noteCountDistance == 0) { drawNoteCount(beat, noteId); } FI;
drawPreviewNormalNote(Sprites.ScratchNote, beat, lane, enLane);
drawPreviewNormalNote(Sprites.ScratchNote, beat, scratchLane, scratchEnLane);
drawPreviewHoldEighth(Sprites.Scratch, stBeat, beat, lane, enLane);
IF (scratchLength > 0) { drawPreviewRightArrow(beat, scratchLane, scratchEnLane); }
ELSE {
Expand Down
Binary file modified main
Binary file not shown.

0 comments on commit 020e519

Please sign in to comment.