Exemplo n.º 1
0
        public Player(KinectContext context, SkeletonPlayerAssignment assignment)
        {
            this.Context = context;
            this.SkeletonAssignment = assignment;

            LeftHand = new PlayerHand(this, JointType.HandLeft);
            RightHand = new PlayerHand(this, JointType.HandRight);

            DrawHands = false;
        }
Exemplo n.º 2
0
        public Player(KinectContext context, SkeletonPlayerAssignment assignment)
        {
            this.Context = context;
            this.SkeletonAssignment = assignment;

               //LeftHand = new PlayerHand(this);
            RightHand = new PlayerHand(this);

            DrawHands = true;
        }
Exemplo n.º 3
0
 public SkeletonRenderer(KinectContext context)
 {
     Context = context;
 }
Exemplo n.º 4
0
        protected override void Initialize()
        {
            Assets.LoadContent(Content);
            kinectContext = new KinectContext(graphics.GraphicsDevice);
            kinectContext.Initialize();

            ScreenManager = new ScreenManager(this);
            var splash = new SplashScreen(kinectContext, Assets.SplashLogo, 2.0f);
            ScreenManager.AddScreen(splash);
            ScreenManager.Actions.AddAction(new WaitForCondition(delegate() { return splash.TweenerFinished; }), true);
            ScreenManager.Actions.AddAction(new CallFunction(delegate() { ScreenManager.SwitchScreen(new MenuScreen(kinectContext)); }), true);

            debugComponent = new DebugComponent(this);

            //createHighscoreDirectories();

            base.Initialize();
        }