using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.GamerServices; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Media; using VBXSE; namespace TalkingIsAFreeAction { /// /// This is the main type for your game /// public class Game1 : Microsoft.Xna.Framework.Game { public Game1() { Content.RootDirectory = "Content"; SpriteEngine.Initialize(this, 320, 180); SpriteEngine.ChangeResolution(1280, 720); //4x Upscale! SpriteEngine.samplerState = SamplerState.PointClamp; //Nearest neighbor scaling } protected override void Initialize() { base.Initialize(); } protected override void LoadContent() { SpriteEngine.LoadContent(); Audio.LoadContent(this); Main.Initialize(); } protected override void UnloadContent() { } protected override void Update(GameTime gameTime) { Main.Update(gameTime.ElapsedGameTime.TotalMilliseconds); SpriteEngine.Update(gameTime); base.Update(gameTime); } protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.Black); SpriteEngine.Draw(gameTime); base.Draw(gameTime); } } }