Advertisement
Guest User

Untitled

a guest
May 28th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.41 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using Microsoft.Xna.Framework;
  5. using Microsoft.Xna.Framework.Audio;
  6. using Microsoft.Xna.Framework.Content;
  7. using Microsoft.Xna.Framework.GamerServices;
  8. using Microsoft.Xna.Framework.Graphics;
  9. using Microsoft.Xna.Framework.Input;
  10. using Microsoft.Xna.Framework.Media;
  11. using Microsoft.Xna.Framework.Net;
  12. using Microsoft.Xna.Framework.Storage;
  13. using AndrewsXnaHelpers;
  14. namespace Example
  15. {
  16.     public class Game1 : Microsoft.Xna.Framework.Game
  17.     {
  18.         GraphicsDeviceManager graphics;
  19.         SpriteBatch spriteBatch;
  20.         public Game1()
  21.         {
  22.             graphics = new GraphicsDeviceManager(this);
  23.             Content.RootDirectory = "Content";
  24.         }
  25.         protected override void Initialize()
  26.         {
  27.             base.Initialize();
  28.         }
  29.         protected override void LoadContent()
  30.         {
  31.             spriteBatch = new SpriteBatch(GraphicsDevice);
  32.             Variables.SetVariables(graphics, Content, spriteBatch);
  33.         }
  34.         protected override void UnloadContent(){ }
  35.         protected override void Update(GameTime gameTime)
  36.         {
  37.             Variables.Update(gameTime);
  38.  
  39.             base.Update(gameTime);
  40.         }
  41.         protected override void Draw(GameTime gameTime)
  42.         {
  43.             GraphicsDevice.Clear(Color.CornflowerBlue);
  44.             base.Draw(gameTime);
  45.         }
  46.     }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement