private void LoadHands()
 {
     HandSize = new Vector2 (HAND_WIDTH, HAND_HEIGHT);
     HandFactory = new HandFactory (Game, ContentManager);
     var origin = new Vector2 (USER_HAND_ONE_X_POSITION - HAND_WIDTH / 2, USER_HAND_Y_POSITION - HAND_HEIGHT / 2);
     Hands.Add (CreateHand (origin, HandType.Rock));
     origin = new Vector2 (USER_HAND_TWO_X_POSITION - HAND_WIDTH / 2, USER_HAND_Y_POSITION - HAND_HEIGHT / 2);
     Hands.Add (CreateHand (origin, HandType.Paper));
     origin = new Vector2 (USER_HAND_THREE_X_POSITION - HAND_WIDTH / 2, USER_HAND_Y_POSITION - HAND_HEIGHT / 2);
     Hands.Add (CreateHand (origin, HandType.Scissors));
 }
示例#2
0
 private void LoadContent()
 {
     HandFactory = new HandFactory (Game, ContentManager);
     CollisionBarBackgroundTexture = LoadTexture2D (COLLISION_BAR_BACKGROUND_XNB);
     CollisionBarTexture = LoadTexture2D (COLLISION_BAR_XNB);
 }