1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-23 14:07:24 +08:00
osu-lazer/osu.Game/GameModes/Play/PlayTest.cs

53 lines
1.6 KiB
C#
Raw Normal View History

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
using System.Collections.Generic;
2016-09-02 17:06:36 +08:00
using osu.Framework.GameModes;
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 18:25:13 +08:00
Beatmap beatmap = new Beatmap
{
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 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
}
}
}