Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Game1()
- {
- graphics = new GraphicsDeviceManager(this);
- Content.RootDirectory = "Content";
- }
- /// <summary>
- /// Allows the game to perform any initialization it needs to before starting to run.
- /// This is where it can query for any required services and load any non-graphic
- /// related content. Calling base.Initialize will enumerate through any components
- /// and initialize them as well.
- /// </summary>
- protected override void Initialize()
- {
- graphics.GraphicsProfile = GraphicsProfile.HiDef;
- graphics.PreferMultiSampling = true;
- GraphicsDevice.PresentationParameters.MultiSampleCount = ANTI_ALIAS_COUNT;
- graphics.ApplyChanges();
- // TODO: Add your initialization logic here
- ballVelocity = new Vector3(4, 4, 4);
- paddlePosition = new Vector3(0f, 0f, gameboxScale.Z + paddleScale.Z);
- base.Initialize();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement