mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +09:00
Add floating fruits mod
This commit is contained in:
parent
3eb2fb7e89
commit
cf3aaff7bd
@ -126,7 +126,8 @@ namespace osu.Game.Rulesets.Catch
|
|||||||
case ModType.Fun:
|
case ModType.Fun:
|
||||||
return new Mod[]
|
return new Mod[]
|
||||||
{
|
{
|
||||||
new MultiMod(new ModWindUp(), new ModWindDown())
|
new MultiMod(new ModWindUp(), new ModWindDown()),
|
||||||
|
new CatchModFloatingFruits()
|
||||||
};
|
};
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
23
osu.Game.Rulesets.Catch/Mods/CatchModFloatingFruits.cs
Normal file
23
osu.Game.Rulesets.Catch/Mods/CatchModFloatingFruits.cs
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
using osu.Framework.Graphics;
|
||||||
|
using osu.Framework.Graphics.Sprites;
|
||||||
|
using osu.Game.Rulesets.Mods;
|
||||||
|
using osu.Game.Screens.Play;
|
||||||
|
|
||||||
|
namespace osu.Game.Rulesets.Catch.Mods
|
||||||
|
{
|
||||||
|
public class CatchModFloatingFruits : Mod, IApplicableToPlayer
|
||||||
|
{
|
||||||
|
public override string Name => "Floating Fruits";
|
||||||
|
public override string Acronym => "FF";
|
||||||
|
public override string Description => "The fruits are... floating?";
|
||||||
|
public override double ScoreMultiplier => 1;
|
||||||
|
public override IconUsage? Icon => FontAwesome.Brands.Fly;
|
||||||
|
|
||||||
|
public void ApplyToPlayer(Player player)
|
||||||
|
{
|
||||||
|
player.DrawableRuleset.Anchor = Anchor.Centre;
|
||||||
|
player.DrawableRuleset.Origin = Anchor.Centre;
|
||||||
|
player.DrawableRuleset.Scale = new osuTK.Vector2(1, -1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -110,7 +110,7 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
protected HealthProcessor HealthProcessor { get; private set; }
|
protected HealthProcessor HealthProcessor { get; private set; }
|
||||||
|
|
||||||
protected DrawableRuleset DrawableRuleset { get; private set; }
|
public DrawableRuleset DrawableRuleset { get; set; }
|
||||||
|
|
||||||
protected HUDOverlay HUDOverlay { get; private set; }
|
protected HUDOverlay HUDOverlay { get; private set; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user