Files
evilsatellites/EvilSatellites/Game1.cs
T

56 lines
1.5 KiB
C#
Raw Normal View History

2021-04-10 14:08:20 +02:00
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using SynthySound;
namespace EvilSatellites
{
public class Game1 : Game
{
private GraphicsDeviceManager _graphics;
private SpriteBatch _spriteBatch;
private ScreenManager _manager;
public Game1()
{
_graphics = new GraphicsDeviceManager(this);
Content.RootDirectory = "Content";
IsMouseVisible = true;
_manager = new ScreenManager(this);
Components.Add(_manager);
}
protected override void Initialize()
{
// TODO: Add your initialization logic here
2021-04-23 15:07:50 +02:00
// _manager.AddScreen(new EvilSatellites.Screens.GameScreen());
_manager.AddScreen(new EvilSatellites.Screens.MainMenuScreen());
2021-04-10 14:08:20 +02:00
base.Initialize();
}
protected override void LoadContent()
{
_spriteBatch = new SpriteBatch(GraphicsDevice);
// TODO: use this.Content to load your game content here
}
protected override void Update(GameTime gameTime)
{
// TODO: Add your update logic here
_manager.Update(gameTime);
base.Update(gameTime);
}
protected override void Draw(GameTime gameTime)
{
GraphicsDevice.Clear(Color.CornflowerBlue);
// TODO: Add your drawing code here
base.Draw(gameTime);
}
}
}