2017-02-15 19:39:10 +08:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using osu.Game.Graphics.Backgrounds;
|
|
|
|
|
|
2017-04-18 15:05:58 +08:00
|
|
|
|
namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
2017-02-15 19:39:10 +08:00
|
|
|
|
{
|
|
|
|
|
public class TrianglesPiece : Triangles
|
|
|
|
|
{
|
|
|
|
|
protected override bool ExpireOffScreenTriangles => false;
|
|
|
|
|
protected override bool CreateNewTriangles => false;
|
|
|
|
|
protected override float SpawnRatio => 0.5f;
|
|
|
|
|
|
|
|
|
|
public TrianglesPiece()
|
|
|
|
|
{
|
|
|
|
|
TriangleScale = 1.2f;
|
2017-03-01 10:56:14 +08:00
|
|
|
|
HideAlphaDiscrepancies = false;
|
2017-02-15 19:39:10 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void Update()
|
|
|
|
|
{
|
|
|
|
|
if (IsPresent)
|
|
|
|
|
base.Update();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|