diff options
| author | BoredGuy <osome3717@gmail.com> | 2026-01-12 09:04:45 +0300 |
|---|---|---|
| committer | BoredGuy <osome3717@gmail.com> | 2026-01-12 09:04:45 +0300 |
| commit | 463ae57343baff7b3a7567b820c16dfde18f34d5 (patch) | |
| tree | 778cdd76b84a3769774b4b4373ccca3fbd02e3a8 /MonoGameLibrary/Game1.cs | |
| parent | 377f79b3cc234082264b0629145062b6f1a5b9be (diff) | |
Im confused
Diffstat (limited to 'MonoGameLibrary/Game1.cs')
| -rw-r--r-- | MonoGameLibrary/Game1.cs | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/MonoGameLibrary/Game1.cs b/MonoGameLibrary/Game1.cs deleted file mode 100644 index 49937ae..0000000 --- a/MonoGameLibrary/Game1.cs +++ /dev/null @@ -1,51 +0,0 @@ -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using Microsoft.Xna.Framework.Input; - -namespace MonoGameLibrary; - -public class Game1 : Game -{ - private GraphicsDeviceManager _graphics; - private SpriteBatch _spriteBatch; - - public Game1() - { - _graphics = new GraphicsDeviceManager(this); - Content.RootDirectory = "Content"; - IsMouseVisible = true; - } - - protected override void Initialize() - { - // TODO: Add your initialization logic here - - 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) - { - if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)) - Exit(); - - // TODO: Add your update logic here - - base.Update(gameTime); - } - - protected override void Draw(GameTime gameTime) - { - GraphicsDevice.Clear(Color.CornflowerBlue); - - // TODO: Add your drawing code here - - base.Draw(gameTime); - } -} |
