summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoredGuy <osome3717@gmail.com>2026-01-12 11:05:48 +0300
committerBoredGuy <osome3717@gmail.com>2026-01-12 11:05:48 +0300
commit37328f9325aa5175239c513a6a4363400a0dada4 (patch)
treeaff56d23e21e9f79c4a882924e445177b31fc248
parent463ae57343baff7b3a7567b820c16dfde18f34d5 (diff)
Continuing Learning
-rw-r--r--Assets/logo.pngbin0 -> 16734 bytes
-rw-r--r--DungeonSlime/Content/Content.mgcb12
-rw-r--r--DungeonSlime/Content/Images/logo.pngbin0 -> 16734 bytes
-rw-r--r--DungeonSlime/Game1.cs16
-rw-r--r--MonoGameLibrary/Core.cs2
5 files changed, 17 insertions, 13 deletions
diff --git a/Assets/logo.png b/Assets/logo.png
new file mode 100644
index 0000000..1509036
--- /dev/null
+++ b/Assets/logo.png
Binary files differ
diff --git a/DungeonSlime/Content/Content.mgcb b/DungeonSlime/Content/Content.mgcb
index ddc4c36..08a7c33 100644
--- a/DungeonSlime/Content/Content.mgcb
+++ b/DungeonSlime/Content/Content.mgcb
@@ -13,3 +13,15 @@
#---------------------------------- Content ---------------------------------#
+#begin Images/logo.png
+/importer:TextureImporter
+/processor:TextureProcessor
+/processorParam:ColorKeyColor=255,0,255,255
+/processorParam:ColorKeyEnabled=True
+/processorParam:GenerateMipmaps=False
+/processorParam:PremultiplyAlpha=True
+/processorParam:ResizeToPowerOfTwo=False
+/processorParam:MakeSquare=False
+/processorParam:TextureFormat=Color
+/build:Images/logo.png
+
diff --git a/DungeonSlime/Content/Images/logo.png b/DungeonSlime/Content/Images/logo.png
new file mode 100644
index 0000000..1509036
--- /dev/null
+++ b/DungeonSlime/Content/Images/logo.png
Binary files differ
diff --git a/DungeonSlime/Game1.cs b/DungeonSlime/Game1.cs
index 519cb6d..1594151 100644
--- a/DungeonSlime/Game1.cs
+++ b/DungeonSlime/Game1.cs
@@ -1,23 +1,15 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
+using MonoGameLibrary;
namespace DungeonSlime;
-public class Game1 : Game
+public class Game1 : Core
{
- private GraphicsDeviceManager _graphics;
- private SpriteBatch _spriteBatch;
-
- public Game1()
+ public Game1(): base("Dungeon Slime", 1280, 720, false)
{
- _graphics = new GraphicsDeviceManager(this);
- Content.RootDirectory = "Content";
- IsMouseVisible = true;
- _graphics.PreferredBackBufferWidth = 1280;
- _graphics.PreferredBackBufferHeight = 720;
- _graphics.ApplyChanges();
}
protected override void Initialize()
@@ -29,8 +21,6 @@ public class Game1 : Game
protected override void LoadContent()
{
- _spriteBatch = new SpriteBatch(GraphicsDevice);
-
// TODO: use this.Content to load your game content here
}
diff --git a/MonoGameLibrary/Core.cs b/MonoGameLibrary/Core.cs
index 9e4c9e3..a746030 100644
--- a/MonoGameLibrary/Core.cs
+++ b/MonoGameLibrary/Core.cs
@@ -15,6 +15,8 @@ public class Core : Game {
public static SpriteBatch SpriteBatch { get; private set; }
public static new ContentManager Content { get; private set; }
+ bool ShowFrameRate { get; set; } = false;
+
public Core(string title, int width, int height, bool fullscreen) {
if (s_instance != null) {
throw new InvalidOperationException($"Only a single Core instance can be created");