Esempio n. 1
0
 //public void Captured()
 /*Captured
  * current Capture method will print two sprites (a jpg and a png) the first time is captured.
  * subsequent capture events, will put extra question mark pngs on the screen
  */
 private void Captured()
 {
     SkeletonJoints curJoints = new SkeletonJoints(ScreenManager.CurSkeleton);
     SkeletonJoints curJoints2 = new SkeletonJoints(ScreenManager.CurSkeleton2);
     capturedSkeletons.Add(curJoints);
     capturedAvatarIndices.Add(ScreenManager.CurAvatarIndex);
     capturedSkeletons.Add(curJoints2);
     capturedAvatarIndices.Add(ScreenManager.CurAvatarIndex2);
     //int fontHeightAdj = 50; //adjust height by the height of the font
     int menuWidth = ScreenManager.MainGestureMenu.Width;
     int x = (viewport.Width / 2) - menuWidth; //- ScreenManager.;
     int y = viewport.Height / 2;
     spriteBatch.Begin();
     spriteBatch.DrawString(ScreenManager.Font, "~ Captured! " + this.parentSlideMenu.CurrentPageNumber() + " ~", new Vector2(x, y), Color.White);
     spriteBatch.End();
 }
Esempio n. 2
0
        //Skeleton skeleton)
        public void update(SkeletonJoints skeleton)
        {
            this.skeleton = skeleton;

            HandLeft = jointToPoint(skeleton.Joints[JointType.HandLeft]);
            HandRight = jointToPoint(skeleton.Joints[JointType.HandRight]);
        }