コード例 #1
0
ファイル: Player.cs プロジェクト: dotKokott/MathFighter
        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
ファイル: Player.cs プロジェクト: ravensinth/CSTouch
        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
ファイル: MainGame.cs プロジェクト: ravensinth/CSTouch
        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();
        }