1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 17:52:56 +08:00

g -> gravity + one more xmldoc.

This commit is contained in:
smoogipooo 2017-06-07 19:20:01 +09:00
parent 1017cf54d9
commit 1932b58663
2 changed files with 9 additions and 6 deletions

View File

@ -63,7 +63,7 @@ namespace osu.Desktop.VisualTests.Tests
}); });
}; };
Action<bool> createPlayfieldWithNotes = g => Action<bool> createPlayfieldWithNotes = gravity =>
{ {
Clear(); Clear();
@ -78,12 +78,12 @@ namespace osu.Desktop.VisualTests.Tests
Clock = new FramedClock(rateAdjustClock) Clock = new FramedClock(rateAdjustClock)
}); });
if (!g) if (!gravity)
playField.Columns.ForEach(c => c.Add(createTimingChange(0, false))); playField.Columns.ForEach(c => c.Add(createTimingChange(0, false)));
for (double t = start_time; t <= start_time + duration; t += 100) for (double t = start_time; t <= start_time + duration; t += 100)
{ {
if (g) if (gravity)
playField.Columns.ElementAt(0).Add(createTimingChange(t, true)); playField.Columns.ElementAt(0).Add(createTimingChange(t, true));
playField.Add(new DrawableNote(new Note playField.Add(new DrawableNote(new Note
@ -92,7 +92,7 @@ namespace osu.Desktop.VisualTests.Tests
Column = 0 Column = 0
}, new Bindable<Key>(Key.D))); }, new Bindable<Key>(Key.D)));
if (g) if (gravity)
playField.Columns.ElementAt(3).Add(createTimingChange(t, true)); playField.Columns.ElementAt(3).Add(createTimingChange(t, true));
playField.Add(new DrawableNote(new Note playField.Add(new DrawableNote(new Note
@ -102,7 +102,7 @@ namespace osu.Desktop.VisualTests.Tests
}, new Bindable<Key>(Key.K))); }, new Bindable<Key>(Key.K)));
} }
if (g) if (gravity)
playField.Columns.ElementAt(1).Add(createTimingChange(start_time, true)); playField.Columns.ElementAt(1).Add(createTimingChange(start_time, true));
playField.Add(new DrawableHoldNote(new HoldNote playField.Add(new DrawableHoldNote(new HoldNote
@ -112,7 +112,7 @@ namespace osu.Desktop.VisualTests.Tests
Column = 1 Column = 1
}, new Bindable<Key>(Key.F))); }, new Bindable<Key>(Key.F)));
if (g) if (gravity)
playField.Columns.ElementAt(2).Add(createTimingChange(start_time, true)); playField.Columns.ElementAt(2).Add(createTimingChange(start_time, true));
playField.Add(new DrawableHoldNote(new HoldNote playField.Add(new DrawableHoldNote(new HoldNote

View File

@ -5,6 +5,9 @@ using osu.Game.Rulesets.Timing;
namespace osu.Game.Rulesets.Mania.Timing.Drawables namespace osu.Game.Rulesets.Mania.Timing.Drawables
{ {
/// <summary>
/// A timing change which scrolls with an increasing velocity, following a form of "gravity".
/// </summary>
public class DrawableManiaGravityTimingChange : DrawableManiaTimingChange public class DrawableManiaGravityTimingChange : DrawableManiaTimingChange
{ {
public DrawableManiaGravityTimingChange(TimingChange timingChange) public DrawableManiaGravityTimingChange(TimingChange timingChange)