Exemplo n.º 1
0
 public override void Reset()
 {
     base.Reset();
     selectedBall = GameSettingHelper.GetSelectedBall();
     jumpingBall  = new JumpingBall(selectedBall.OriginSpritePath, 0, new Vector2(525, 720), 110, 0.2f);
     jumpingBall.SetOriginToCenterBottom();
 }
Exemplo n.º 2
0
        public override void Reset()
        {
            base.Reset();
            listBall = GameSettingHelper.GetListBall();
            var selectedBall = GameSettingHelper.GetSelectedBall();

            selectingBall = listBall.FirstOrDefault(x => x.Id == selectedBall.Id);
            UpdateSelectingBall();
        }
Exemplo n.º 3
0
        public override void Reset()
        {
            var model = GameSettingHelper.GetSelectedBall();

            spriteName   = model.OriginSpritePath;
            speed        = model.Speed;
            DropPosition = new Vector2(350, 1050);
            ballNumber   = 1;
            Clear();
            AddBall();
            BallOffset = new Vector2(0, balls[0].Height) / 2;
            totalBall.Reset();
        }