Exemplo n.º 1
0
        public override void Init()
        {
            base.Init();

            Manager.FadeInSong(Assets.GameSong, true, 0.2f);

            AddCurtain();
            OpenCurtain();

            AddPlayers();

            MainClock = new Clock(20, 20, 90);
            MainClock.Paused = true;

            AddEntity(MainClock);

            Score = new ScoreSign(MainGame.Width - 190, 25);
            Score.Value = 0;
            AddEntity(Score);

            Coroutines.Start(LoadNumbersFromFile());

            AddInput();

            var posPause = new Vector2(MainGame.Width - 230, (MainGame.Height) - 300);

            var pause = new MenuButton(Assets.ButtonPause, (int)posPause.X, (int)posPause.Y, delegate() { paused = true; });
            AddEntity(pause);

            if (!Configuration.GRABBING_ENABLED) {
                AddEntity(new Scissors(120, MainGame.Height - 350, Scissors.ScissorPosition.Left));
                AddEntity(new Scissors(MainGame.Width - 120, MainGame.Height - 350, Scissors.ScissorPosition.Right));
            }
        }
Exemplo n.º 2
0
        public override void Init()
        {
            base.Init();
            Settings.USE_ADDITION = false;
            Settings.USE_SUBTRACTION = false;
            Settings.USE_MULTIPLICATION = true;

            Manager.FadeInSong(Assets.GameSong, true, 0.2f);

            AddCurtain();
            OpenCurtain();

            PlayerOne = new Player(Context, SkeletonPlayerAssignment.FirstSkeleton);

            hand = new TutorialHand(PlayerOne, Microsoft.Kinect.JointType.HandRight);

            PlayerOne.RightHand = hand;

            AddEntity(hand);

            hand.Position = new Vector2(500, 300);

            MainClock = new Clock(20, 20, 90);
            MainClock.Paused = true;

            AddEntity(MainClock);

            Score = new ScoreSign(MainGame.Width - 190, 25);
            Score.Value = 0;
            AddEntity(Score);

            Coroutines.Start(LoadNumbersFromFile());

            AddInput();

            if (!Configuration.GRABBING_ENABLED) {
                AddEntity(new Scissors(120, MainGame.Height - 350, Scissors.ScissorPosition.Left));
                AddEntity(new Scissors(MainGame.Width - 120, MainGame.Height - 350, Scissors.ScissorPosition.Right));
            }
        }