Imports Microsoft.Xna.Framework Imports Microsoft.Xna.Framework.Graphics ''' ''' This is the main type for your game. ''' Public Class Game1 Inherits Game Private graphics As GraphicsDeviceManager Private spriteBatch As SpriteBatch Public Sub New() graphics = New GraphicsDeviceManager(Me) Content.RootDirectory = "Content" End Sub ''' ''' 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. ''' Protected Overrides Sub Initialize() '' TODO: Add your initialization logic here MyBase.Initialize() End Sub ''' ''' LoadContent will be called once per game and is the place to load ''' all of your content. ''' Protected Overrides Sub LoadContent() '' Create a new SpriteBatch, which can be used to draw textures. spriteBatch = New SpriteBatch(GraphicsDevice) '' TODO: use this.Content to load your game content here End Sub ''' ''' UnloadContent will be called once per game and is the place to unload ''' game-specific content. ''' Protected Overrides Sub UnloadContent() '' TODO: Unload any non ContentManager contenthere. End Sub ''' ''' Allws the game to run logic such as updating the world, ''' checking for collisions, gathering input, and playing audio. ''' ''' Provides the snapshot of timing values Protected Overrides Sub Update(gameTime As GameTime) '' TODO: Add your update logic here MyBase.Update(gameTime) End Sub ''' ''' This is called when the game should draw itself. ''' ''' Provides a snapshot of timing values. Protected Overrides Sub Draw(gameTime As GameTime) GraphicsDevice.Clear(Color.CornflowerBlue) '' TODO: Add your drawing code here MyBase.Draw(gameTime) End Sub End Class