public override void LoadContent() { content = ScreenManager.Game.Content; graphics = ScreenManager.GraphicsDevice; spriteBatch = ScreenManager.SpriteBatch; screenHeight = graphics.Viewport.Height; screenWidth = graphics.Viewport.Width; boss = new Boss(bossLevel, content.Load <Texture2D>("Textures\\Transparent"), new Rectangle(1000, 200, 50, 50)); gradientTexture = content.Load <Texture2D>("Textures\\Gym-Interior"); font = content.Load <SpriteFont>("SpriteFont1"); rightSword = content.Load <Texture2D>("Textures//sword"); bump = content.Load <SoundEffect>("Audio//bump"); hand.LoadContent(content); button.LoadContent(content); Texture2D shieldSprite = content.Load <Texture2D>("Textures//shield"); virusBar.LoadContent(content); leftSword = rightSword; for (int i = 0; i <= 3; i++) { shields[i] = shieldSprite; } levelPassed = new Sprite(content.Load <Texture2D>("Textures//Level"), new Rectangle(1280, 200, 800, 95), content); base.LoadContent(); }
public override void LoadContent() { backgroundImage = content.Load <Texture2D>("Textures/highScoresScreen"); font = content.Load <SpriteFont>("newFont"); names = System.IO.File.ReadAllLines("Text/HighScores.txt"); okButton.LoadContent(content); hand.LoadContent(content); Split(); base.LoadContent(); }
public override void LoadContent() { backgroundImage = new Texture2D(ScreenManager.GraphicsDevice, ScreenManager.Kinect.GetFrameWidth(), ScreenManager.Kinect.GetFrameHeight()); backgroundImage.SetData(colorDataList[index]); saveButton.LoadContent(ScreenManager.Game.Content); nextButton.LoadContent(ScreenManager.Game.Content); hand.LoadContent(ScreenManager.Game.Content); base.LoadContent(); }
public override void LoadContent() { ContentManager Content = ScreenManager.Game.Content; backgroundImage = Content.Load <Texture2D>("Textures/losingScreen"); font = Content.Load <SpriteFont>("Fontopo"); LoadButtonsContent(Content); hand.LoadContent(Content); base.LoadContent(); }
public override void LoadContent() { Content = ScreenManager.Game.Content; spriteBatch = ScreenManager.SpriteBatch; dumbbell.Initialize("Buttons//dumbbell", kinect, new Vector2(140, 290)); treadmill.Initialize("Buttons//treadmill", kinect, new Vector2(800, 250)); dumbbell.LoadContent(Content); treadmill.LoadContent(Content); Hand.LoadContent(Content); background = new Sprite(Content.Load <Texture2D>("Textures//choosing_frame"), new Rectangle(0, 0, 1280, 720), Content); base.LoadContent(); }
public override void LoadContent() { kinect = ScreenManager.Kinect; gesture = kinect.Gesture; content = ScreenManager.Game.Content; graphics = ScreenManager.GraphicsDevice; spriteBatch = ScreenManager.SpriteBatch; screenHeight = graphics.Viewport.Height; screenWidth = graphics.Viewport.Width; gradientTexture = content.Load <Texture2D>("Textures/gradientTexture"); font = content.Load <SpriteFont>("SpriteFont1"); font2 = content.Load <SpriteFont>("Fontopo"); //font2.LineSpacing = 21; hand.LoadContent(content); button.LoadContent(content); textToDraw = WrapText(font2, text, 9000); base.LoadContent(); }
public override void LoadContent() { ContentManager Content = ScreenManager.Game.Content; spriteFont = Content.Load <SpriteFont>("Fontopo"); backgroundImage = Content.Load <Texture2D>("Textures/instructionsScreen"); spriteFont.LineSpacing = 21; if (WrapTexter) { TextToDraw = WrapText(spriteFont, Text, 1130); } else { TextToDraw = Text; } OkButton.LoadContent(Content); Hand.LoadContent(Content); base.LoadContent(); }
public override void LoadContent() { Content = ScreenManager.Game.Content; spriteBatch = ScreenManager.SpriteBatch; newGame.Initialize("Buttons//new", kinect, new Vector2(85, 210), 200, 200); instructions.Initialize("Buttons//instructions", kinect, new Vector2(385, 210), 200, 200); highscores.Initialize("Buttons//highscores", kinect, new Vector2(685, 210), 200, 200); exit.Initialize("Buttons//exit", kinect, new Vector2(975, 210), 200, 200); newGame.LoadContent(Content); instructions.LoadContent(Content); highscores.LoadContent(Content); exit.LoadContent(Content); Hand.LoadContent(Content); menu = new Sprite(Content.Load <Texture2D>("Textures//menu"), new Rectangle(0, 0, 1280, 720), Content); newGameLabel = new Sprite(Content.Load <Texture2D>("Textures//new_label"), new Rectangle(70, 430, 240, 50), Content); instructionsLabel = new Sprite(Content.Load <Texture2D>("Textures//instructions_label"), new Rectangle(375, 430, 240, 50), Content); scoresLabel = new Sprite(Content.Load <Texture2D>("Textures//scores_label"), new Rectangle(665, 430, 240, 50), Content); exitLabel = new Sprite(Content.Load <Texture2D>("Textures//exit_label"), new Rectangle(960, 430, 240, 50), Content); base.LoadContent(); }
public override void LoadContent() { message = " Settings Screen "; message2 = " Please swipe your hand to switch your avatar "; content = ScreenManager.Game.Content; graphics = ScreenManager.GraphicsDevice; spriteBatch = ScreenManager.SpriteBatch; screenHeight = graphics.Viewport.Height; screenWidth = graphics.Viewport.Width; background = content.Load <Texture2D>("Textures\\losingScreen"); leftArrow = content.Load <Texture2D>("Textures\\leftArrow"); rightArrow = content.Load <Texture2D>("Textures\\rightArrow"); font = content.Load <SpriteFont>("newFont2"); hand.LoadContent(content); button.LoadContent(content); avatars[0] = content.Load <Texture2D>(@"Textures\\avatar-dead"); avatars[1] = content.Load <Texture2D>(@"Textures\\avatar-red"); avatars[2] = content.Load <Texture2D>(@"Textures\\avatar-green"); avatars[3] = content.Load <Texture2D>(@"Textures\\avatar-white"); avatarPosition = new Vector2((screenWidth / 1.7f), (screenHeight / 1.5f)); currentAvatar = avatars[0]; base.LoadContent(); }