Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.03 KB | None | 0 0
  1.         public Game1()
  2.         {
  3.             graphics = new GraphicsDeviceManager(this);
  4.             Content.RootDirectory = "Content";
  5.         }
  6.  
  7.         /// <summary>
  8.         /// Allows the game to perform any initialization it needs to before starting to run.
  9.         /// This is where it can query for any required services and load any non-graphic
  10.         /// related content.  Calling base.Initialize will enumerate through any components
  11.         /// and initialize them as well.
  12.         /// </summary>
  13.         protected override void Initialize()
  14.         {
  15.             graphics.GraphicsProfile = GraphicsProfile.HiDef;
  16.             graphics.PreferMultiSampling = true;
  17.             GraphicsDevice.PresentationParameters.MultiSampleCount = ANTI_ALIAS_COUNT;
  18.             graphics.ApplyChanges();
  19.  
  20.             // TODO: Add your initialization logic here
  21.             ballVelocity = new Vector3(4, 4, 4);
  22.             paddlePosition = new Vector3(0f, 0f, gameboxScale.Z + paddleScale.Z);
  23.  
  24.  
  25.             base.Initialize();
  26.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement