示例#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;
        }
示例#2
0
        public Player(KinectContext context, SkeletonPlayerAssignment assignment)
        {
            this.Context = context;
            this.SkeletonAssignment = assignment;

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

            DrawHands = true;
        }
示例#3
0
 public SkeletonRenderer(KinectContext context)
 {
     Context = context;
 }
示例#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();
        }