Skip to content
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

Implement osu!stable fail animation #453

Merged
merged 17 commits into from
Nov 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Attach fail animation to engine rather than scene to avoid speed mult…
…iplier effect
Rian8337 committed Nov 16, 2024
commit bd08a9bf5996e1ba25a1df598d32416cb1a9a993
5 changes: 2 additions & 3 deletions src/ru/nsu/ccfit/zuev/osu/game/GameScene.java
Original file line number Diff line number Diff line change
@@ -2238,8 +2238,7 @@ public void gameover() {

// Wind down animation for failing based on osu!stable behavior.

scene.registerUpdateHandler(new IUpdateHandler() {

engine.registerUpdateHandler(new IUpdateHandler() {
@Override
public void onUpdate(float pSecondsElapsed) {
if (songService.getFrequency() > 101) {
@@ -2294,7 +2293,7 @@ public void onUpdate(float pSecondsElapsed) {
paused = true;

scene.setIgnoreUpdate(true);
scene.unregisterUpdateHandler(this);
engine.unregisterUpdateHandler(this);

hud.setChildScene(menu.getScene(), false, true, true);
}