2016-09-02 17:06:36 +08:00
|
|
|
|
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2016-09-02 17:27:38 +08:00
|
|
|
|
using System.Collections.Generic;
|
2016-09-02 17:06:36 +08:00
|
|
|
|
using osu.Framework.GameModes;
|
2016-09-02 17:27:38 +08:00
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
|
using osu.Game.Beatmaps.Objects;
|
2016-09-02 18:25:13 +08:00
|
|
|
|
using osu.Game.Beatmaps.Objects.Osu;
|
|
|
|
|
using osu.Game.GameModes.Play.Osu;
|
2016-09-02 18:50:22 +08:00
|
|
|
|
using osu.Game.GameModes.Play.Taiko;
|
2016-09-02 18:25:13 +08:00
|
|
|
|
using OpenTK;
|
2016-09-02 17:06:36 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.GameModes.Play
|
|
|
|
|
{
|
2016-09-02 18:25:13 +08:00
|
|
|
|
public class PlayTest : GameMode
|
2016-09-02 17:06:36 +08:00
|
|
|
|
{
|
|
|
|
|
public override void Load()
|
|
|
|
|
{
|
|
|
|
|
base.Load();
|
2016-09-02 17:27:38 +08:00
|
|
|
|
|
2016-09-02 18:25:13 +08:00
|
|
|
|
Beatmap beatmap = new Beatmap
|
2016-09-02 17:27:38 +08:00
|
|
|
|
{
|
2016-09-02 18:25:13 +08:00
|
|
|
|
HitObjects = new List<BaseHit>()
|
|
|
|
|
{
|
|
|
|
|
new Circle()
|
|
|
|
|
{
|
2016-09-02 18:50:22 +08:00
|
|
|
|
StartTime = 1500,
|
2016-09-02 18:25:13 +08:00
|
|
|
|
Position = new Vector2(0, 0)
|
|
|
|
|
},
|
|
|
|
|
new Circle()
|
|
|
|
|
{
|
2016-09-02 18:50:22 +08:00
|
|
|
|
StartTime = 2000,
|
2016-09-02 18:25:13 +08:00
|
|
|
|
Position = new Vector2(512, 0)
|
|
|
|
|
},
|
|
|
|
|
new Circle()
|
|
|
|
|
{
|
2016-09-02 18:50:22 +08:00
|
|
|
|
StartTime = 2500,
|
2016-09-02 18:25:13 +08:00
|
|
|
|
Position = new Vector2(512, 384)
|
|
|
|
|
},
|
|
|
|
|
new Circle()
|
|
|
|
|
{
|
2016-09-02 18:50:22 +08:00
|
|
|
|
StartTime = 3000,
|
2016-09-02 18:25:13 +08:00
|
|
|
|
Position = new Vector2(0, 384)
|
|
|
|
|
},
|
|
|
|
|
}
|
2016-09-02 17:27:38 +08:00
|
|
|
|
};
|
|
|
|
|
|
2016-09-02 18:25:13 +08:00
|
|
|
|
Add(new OsuHitRenderer() { Objects = beatmap.HitObjects });
|
2016-09-02 18:50:22 +08:00
|
|
|
|
Add(new TaikoHitRenderer() { Objects = beatmap.HitObjects });
|
2016-09-02 17:06:36 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|