Skip to content

Add osu! mod "Centered Cursor"#37487

Open
Rudicito wants to merge 2 commits intoppy:masterfrom
Rudicito:centered-cursor
Open

Add osu! mod "Centered Cursor"#37487
Rudicito wants to merge 2 commits intoppy:masterfrom
Rudicito:centered-cursor

Conversation

@Rudicito
Copy link
Copy Markdown
Contributor

Mod proposal: #37302

This mod lock the cursor at the middle of the screen, and when we move, it's the whole playfield that moves.

Note

The mod name and description is very neutral, I got no inspiration.

Video

cc3.mp4

How it works

A drawable is added in PlayfieldAdjustmentContainer that gets the screen space mouse position, and block OnMouseMove() propagation to the Playfield.

The screen space mouse position obtained is converted to the local Playfield space position, and we call manually OnMouseMove() with the new mouse position.

Finally, we move the playfield to the new mouse position.

List of broken mods

  • Flashlight: the light is not following the cursor well
  • Relax: broken, doesn't press the circlesreally often
  • Autopilot: ultra broken, the cursor teleports back and forth in a loop
  • Bubbles: the bubbles don't spawn in the expected places

The Blinds mod I'm not sure, I think it looks okay, so I didn't add it to the incompatible mods, but maybe I should?

blinds-cc.mp4

Sorry for my bad english

@cowburrs
Copy link
Copy Markdown

looks awesome!


public void ApplyToPlayer(Player player)
{
if (osuInputManager.ReplayInputHandler != null) hasReplay = true;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this could have been done in ApplyToDrawableRuleset() but I just done the same thing that OsuModRelax :

https://github.com/ppy/osu/blob/master/osu.Game.Rulesets.Osu%2FMods%2FOsuModRelax.cs#L55-L71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants