-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: note render, hitfx render, rating #472
Open
2278535805
wants to merge
14
commits into
TeamFlos:main
Choose a base branch
from
2278535805:render-fix
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
fa92899
Fix: Modify chart parse & hitfx
2278535805 274ad37
Fix: Modify note render
2278535805 58ad7a7
ignore ./idea
2278535805 9f6fdad
fix: note render, hitfx render, hold aggressive
2278535805 0983e87
refactor: remove shit
2278535805 a7261f3
fix: cover pos
2278535805 5c53fdf
remove shit
2278535805 c07e380
revert bin.rs
2278535805 76f2a64
Update line.rs
2278535805 d842ff5
fix: format version
2278535805 8bb60f2
use not nan for note sort
2278535805 f5fd2c1
Merge branch 'main' into render-fix
2278535805 9d7699a
use #allow
2278535805 9e405a2
modify all perfect
2278535805 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,4 @@ inner.rs | |
/test | ||
/log* | ||
/build_event_debug.sh | ||
/.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ pub enum ChartFormat { | |
Rpe = 0, | ||
Pec, | ||
Pgr, | ||
Pgr1, | ||
Pbc, | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -853,7 +853,6 @@ impl Judge { | |
} | ||
} | ||
for (line_id, id) in judgements.into_iter() { | ||
self.commit(t, Judgement::Perfect, line_id as _, id, 0.); | ||
let (note_transform, note_hitsound) = { | ||
let line = &mut chart.lines[line_id]; | ||
let note = &mut line.notes[id as usize]; | ||
|
@@ -863,11 +862,14 @@ impl Judge { | |
(note.object.now(res), note.hitsound.clone()) | ||
}; | ||
let line = &chart.lines[line_id]; | ||
res.with_model(line.now_transform(res, &chart.lines) * note_transform, |res| { | ||
res.emit_at_origin(line.notes[id as usize].rotation(&line), res.res_pack.info.fx_perfect()) | ||
}); | ||
if !matches!(chart.lines[line_id].notes[id as usize].kind, NoteKind::Hold { .. }) { | ||
self.commit(t, Judgement::Perfect, line_id as _, id, 0.); | ||
res.with_model(line.now_transform(res, &chart.lines) * note_transform, |res| { | ||
res.emit_at_origin(line.notes[id as usize].rotation(line), res.res_pack.info.fx_perfect()) | ||
}); | ||
note_hitsound.play(res); | ||
} else { | ||
self.commit(t, Judgement::Perfect, line_id as _, id, 0.); | ||
} | ||
} | ||
} | ||
|
@@ -968,13 +970,13 @@ pub struct PlayResult { | |
|
||
pub fn icon_index(score: u32, full_combo: bool) -> usize { | ||
match (score, full_combo) { | ||
(1000000, _) => 7, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. combo数太大这里有点问题吧,是不是该改1000000, true There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 本家中实测无论什么情况,只要分数是1000000就是AP,所以我改成了这样( |
||
(_, true) => 6, | ||
(x, _) if x < 700000 => 0, | ||
(x, _) if x < 820000 => 1, | ||
(x, _) if x < 880000 => 2, | ||
(x, _) if x < 920000 => 3, | ||
(x, _) if x < 960000 => 4, | ||
(1000000, _) => 7, | ||
(_, false) => 5, | ||
(_, true) => 6, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
先不动bin.rs