Exemplo n.º 1
0
 public HoldBody()
 {
     Scale            = Vector2.Zero;
     Position         = new Vector2(0, -(SentakkiPlayfield.NOTESTARTDISTANCE - 37.5f));
     Anchor           = Anchor.Centre;
     Origin           = Anchor.BottomCentre;
     Size             = new Vector2(75);
     InternalChildren = new Drawable[]
     {
         Note = new Container
         {
             Anchor           = Anchor.Centre,
             Origin           = Anchor.Centre,
             RelativeSizeAxes = Axes.Both,
             Children         = new Drawable[]
             {
                 shadow = new ShadowPiece(),
                 new RingPiece(),
                 new DotPiece(squared: true)
                 {
                     Rotation = 45,
                     Position = new Vector2(0, -37.5f),
                     Anchor   = Anchor.BottomCentre,
                 },
                 new DotPiece(squared: true)
                 {
                     Rotation = 45,
                     Position = new Vector2(0, 37.5f),
                     Anchor   = Anchor.TopCentre,
                 },
             }
         },
         flash = new FlashPiece()
         {
             CornerRadius   = 40,
             CornerExponent = 2
         },
         explode = new ExplodePiece()
     };
 }