diff options
| -rw-r--r-- | Assets/logo.png | bin | 0 -> 16734 bytes | |||
| -rw-r--r-- | DungeonSlime/Content/Content.mgcb | 12 | ||||
| -rw-r--r-- | DungeonSlime/Content/Images/logo.png | bin | 0 -> 16734 bytes | |||
| -rw-r--r-- | DungeonSlime/Game1.cs | 16 | ||||
| -rw-r--r-- | MonoGameLibrary/Core.cs | 2 |
5 files changed, 17 insertions, 13 deletions
diff --git a/Assets/logo.png b/Assets/logo.png Binary files differnew file mode 100644 index 0000000..1509036 --- /dev/null +++ b/Assets/logo.png 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 Binary files differnew file mode 100644 index 0000000..1509036 --- /dev/null +++ b/DungeonSlime/Content/Images/logo.png 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"); |
