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 SnakeRPG { /// /// This is the main type for your game /// public class Game1 : Microsoft.Xna.Framework.Game { public Game1() { Content.RootDirectory = "Content"; SpriteEngine.Initialize(this, 1280, 720); } protected override void Initialize() { base.Initialize(); } protected override void LoadContent() { SpriteEngine.LoadContent(); Audio.LoadContent(Content); Main.Initialize(); } protected override void UnloadContent() { } protected override void Update(GameTime gameTime) { Main.Update((float)gameTime.ElapsedGameTime.TotalMilliseconds); if (!Main.running) this.Exit(); SpriteEngine.Update(gameTime); base.Update(gameTime); } protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.Black); SpriteEngine.Draw(gameTime); base.Draw(gameTime); } } }