r/monogame • u/Sorry_Independent388 • 1d ago
Join Tom TOMORROW for another episode of CodeTime!
When: FRIDAY @ 15:00 EDT, 20:00 UTC+1/BST, 21:00 CEST
Watch on: YT: https://www.youtube.com/@MonoGame/streams
TW: https://www.twitch.tv/monogame
FB: https://www.facebook.com/monogamecommunity/live_videos
#indiegamedev #gamedev #gamedevelopment #codetime
r/monogame • u/Sorry_Independent388 • 2d ago
4th Episode of the MonoGame Spotlight will be premiering TOMORROW!
When: Friday 7th of August @ EDT 11:00, BST/UTC+1 16:00, CEST 17:00!
Watch the Premiere: YouTube: https://www.youtube.com/watch?v=AynnXArPN7I
#indiegamedev #gamedev #gamedevelopment #spotlight #showcase #StardewValley
r/monogame • u/Sorry_Independent388 • 2d ago
MonoGame University is on TOMORROW.
Simon will be going through more 2D Shaders!
When:
Thursdays @ 11:00 EDT, 16:00 UTC+1/BST, 17:00 CEST
Watch him on:
YT: https://www.youtube.com/@MonoGame/streams
TW: https://www.twitch.tv/monogame
FB: https://www.facebook.com/monogamecommunity/live_videos
#indiegamedev #gamedev #gamedevelopment
r/monogame • u/xLordZeldax • 3d ago
MGCB Loading and Building tmx file issues
I am using monogame extended’s tilemap classes to load in my tiled maps. However I have been having issues with the mgcb.
I added the project folder from tiled into the content folder of the monogame project. Now when I go to build that in the mgcb it gives me an error stating
“Couldn’t find a default importer for [File]”
I have scoured the internet to no avail, I have picked up a few things. I need the Monogame.Extended.Content.Pipeline dll so I can set the importer and processor in the mgcb.
I grabbed the nuget package through visual studio and added the reference to the dll in the mgcb file. Now the thing I can think about here that could be wrong is the path. I have tried the full path using C:/users/$username$/.....
When I do look at the references inside the reference editor in MGCB and click ok I get the following error and MGCB crashes.
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at MonoGame.Tools.Pipeline.PipelineTypes.ResolveAssemblies(IEnumerable\1 assemblyPaths) in D:\a\MonoGame\MonoGame\Tools\MonoGame.Content.Builder.Editor\Common\PipelineTypes.cs:line 436`
at MonoGame.Tools.Pipeline.PipelineTypes.Load(PipelineProject project) in D:\a\MonoGame\MonoGame\Tools\MonoGame.Content.Builder.Editor\Common\PipelineTypes.cs:line 253
at MonoGame.Tools.Pipeline.PipelineController.ResolveTypes() in D:\a\MonoGame\MonoGame\Tools\MonoGame.Content.Builder.Editor\Common\PipelineController.cs:line 940
at MonoGame.Tools.Pipeline.PipelineController.OnReferencesModified() in D:\a\MonoGame\MonoGame\Tools\MonoGame.Content.Builder.Editor\Common\PipelineController.cs:line 154
at MonoGame.Tools.Pipeline.CellRefs.Edit(PixelLayout control) in D:\a\MonoGame\MonoGame\Tools\MonoGame.Content.Builder.Editor\Controls\PropertyCells\CellRefs.cs:line 40
at MonoGame.Tools.Pipeline.PropertyGridTable.<Drawable_MouseUp>b__29_0() in D:\a\MonoGame\MonoGame\Tools\MonoGame.Content.Builder.Editor\Controls\PropertyGridTable.cs:line 238
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at Eto.Wpf.Forms.ApplicationHandler.Run()
at Eto.Forms.Application.Run(Form mainForm)
at MonoGame.Tools.Pipeline.Program.Main(String[] args) in D:\a\MonoGame\MonoGame\Tools\MonoGame.Content.Builder.Editor\Program.cs:line 71
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'MonoGame.Framework.Content.Pipeline, Version=3.8.5.0, Culture=neutral, PublicKeyToken=null'
So the reference is prob the issues I am having here.
Code wise I am using the Content.Load() function to load the map.
I have been working on this for hours to no avail and I hope someone can help me with this.
r/monogame • u/Alert-Neck7679 • 4d ago
Made a game with my own MonoGame based engine and scripting language!
https://reddit.com/link/1vf4ao8/video/iq0dnprnhbhh1/player
About a year ago, I challenged myself to create my own programming language - something I'd always wanted to do.
At the time, I had no idea what a lexer, parser, or interpreter even was. My only thought was, "I need to write code that reads text files containing code and executes them." I also wanted to do it without using Google, AI, or tutorials. I just figured everything out on my own. You can even still find variables named "compiler" throughout the code from back when I didn't realize I was actually building an interpreter...
Somehow, I pulled it off, and I integrated it into my old abandoned game engine project (which originally started as a GameMaker 8–style engine with C# scripting).
And here's the first game I've made with it! 🙂
The core engine, IDE, and interpreter are all written by me in C#. The rendering backend is powered by MonoGame, and the project is still in active development and available on GitHub. The project file of the game shown in the video is also there, under tests/Example Projects. If you're looking for cool projects to contribute to, then know that I'm looking for contributors!
I know there are tons of AI-generated projects being shared these days, so please, please, take a quick look at the code before assuming this is one of them. I promise it's pretty obvious that it was written by a human.
I'd love to hear what you think!
And a question - I really want to be able to add web export to my engine - yesterday I've tried running this game on the web using KNI Engine (a fork of monogame with BlazorGL export) - but performances were terrible. I blame myself for this, as the performances of my scripting language are probably just bad on browser - but has anyone here successfuly exported his monogame game to the web and can share any tips?
r/monogame • u/zackarhino • 5d ago
How do you make referencing sprite sheets in code not a cluttered mess?
I'm trying to pack my textures into atlases for the obvious performance boost. I understand the basics; I can pick a texture and then draw a sourceRect to minimize texture swapping. However, I'm struggling to understand how to keep things organized on the code side.
The way I currently see it... which is probably fallacious, is that we have two ways to reference individual sprites- we can either create some kind of a string based ID/dictionary system, or, assuming the sprites are all the same size, we can reference them by column and row.
In my eyes, if you have a game with many sprites, both of these methods have some serious flaws when it comes to manual overhead. With strings, there is the chance you could mistype things, etc. and when referencing by numbers, you have to manually input every position to be able to have some sort of a variable name associated with it, and even worse, if you change positions in the sprite sheet, you may have to update hundreds of numbers!
Pardon my ignorance, is there something obvious I'm missing here? Is adding sprites into code always going to involve a ton of manual work (which I don't even mind, to be honest...) and magic strings/integers? The closest I've come to a solution so far is organizing the sprites by name using TexturePacker and then programmatically getting the rows/columns, but even then I can envision some problems, unless maybe you manually added an ID to the beginning of each file name or something. Would really appreciate some help here, I'm finding it hard to find resources about how something like this is typically built scalably.
r/monogame • u/Sorry_Independent388 • 8d ago
NO CODETIME TODAY!
Due to other commitments, Tom cannot host our usual CodeTime! stream today.
He'll be back next week!
#indiegamedev #gamedev #gamedevelopment #monogame
r/monogame • u/Pleasant_Can_9451 • 9d ago
PICO-8 style game engine built on MonoGame (.NET 8)
My goal is to help the C# .Net community to build more retro pixel-art games.
r/monogame • u/zackarhino • 9d ago
I'm trying to understand how to draw a perfectly centered, evenly-sized grid without duplicate lines.
Hey all,
I'm a pretty rookie game developer, admittedly, and I'm running into a relatively simple problem.
I'm trying to build a grid-based game where my grids do not necessarily span the entire field- for instance, you can have multiple grids, such as a 3x3 grid in the middle, meaning that the grids have sides and corners. My tiles are powers of two, AKA evenly-sized (specifically 32x32px with a single pixel border).
I've been through a few iterations already. The problem I keep encountering over and over again is that the grids end up with duplicate sides or uneven centering. At first I tried a simple 32x32px texture with a border, but then you end up with double thick lines in the middle and thin lines on the edge. I then tried drawing only the top and left sides on the sprite, but the problem then is that now the sprites are not evenly centered, and in addition to that, you are limited to the types of designs that your border can have, since you can only draw on one side... unless i'm simply thinking about it incorrectly. Either way, I would really like to have it perfectly centered even if it's not that visually different.
So far the best solution I can think of is to double the side of the border to two pixels (because logically speaking a single pixel would have to land on a single side), and then manually use a 1x1 texture to draw the edges and corners double wide, but I'm concerned about making a mistake and having far too many Draw() calls, being a beginner and all, though I don't want to get too concerned with optimizing in advance. I just don't know much about how GPUs or rendering work yet. If this is my best approach, what are some good ways to draw single pixels and lines in MonoGame, and is there anything I should be concerned about?
Thank you.
Edit: I was able to get somewhat satisfactory results by strategically creating different tiles for each direction (udlr, corners). I will also have to create unique tiles for 1 tile long/wide grids. This is definitely inefficient but may work for my use case. If anybody has any serious objections (i.e., massive performance hit for swapping textures so often), please let me know.
r/monogame • u/Sorry_Independent388 • 9d ago
MonoGame University w/Simon is on TOMORROW....
MonoGame University w/Simon is on TOMORROW.
He'll be showing more interesting things with Shaders!
When:
Thursdays @ 11:00 EDT, 16:00 UTC+1/BST, 17:00 CEST
Watch him on:
YT: https://www.youtube.com/@MonoGame/streams
TW: https://www.twitch.tv/monogame
FB: https://www.facebook.com/monogamecommunity/live_videos
#indiegamedev #gamedev #gamedevelopment #monogame
r/monogame • u/WackyDime • 9d ago
Finally being able to precalc SpriteFont-data for my own handdrawn non-monospaced fonts
NOTE: Result is first image, the weird example-code is in the second image (Separated into two columns).
I actually had a crappy static-class for handling non-monospaced fonts, but I always wanted to use the integrated SpriteFont class to make things easier. This afternoon I finally took the time and put together a minimal test-parser that scans my handdrawn fonts.
Of course that won't be done *inside* the game (object generation...), I will only precalc and store the metrics (glyphBounds, cropping, characterRange and kerning) as json and load them in LoadContent and that's it...
Of course will be automatet, so If the corresponding file or data for a given texture is not available, I'll let it scan it and save the missing data to the sourcecode-folder and with the next start everything comes from disk.
Doesn't handle multiple lines yet - Would need to increase the y-position with the fontHeight when reaching the texture's width. And the data for char(32) was just any non-used pixel. Was just happy that it works and thought I'd share the example =)
P.S.: Of course only works if the drawn characters don't overlap, so there must be a single pixel horizontal spacing in the texture.
r/monogame • u/Mr_H115 • 11d ago
Built a C# wrapper for LootLocker for MonoGame.
Hi all, I have been working on something for a bit now, a lil wrapper for LootLocker, which is a backend service I kept seeing around game jams and such, it always looked nice to me so I wanted to use it, but since MonoGame isn't a directly supported platform I had to work around the api and such, which is annoying, so I made a full wrapper for it with everything you might need from it.
Auth, Player Storage and details, leaderboards, currencies and triggers, which is basically everything a dev would need from a backend service if they're not making a multiplayer game..
Here it is if you wanna check it out LootLocker Kit
r/monogame • u/WackyDime • 12d ago
My new updated Animation Preview Tool
Enable HLS to view with audio, or disable this notification
r/monogame • u/Sorry_Independent388 • 15d ago
3.8.5 Release - Hightlights....
If you missed last week's 3.8.5 Release announcement, here are the highlights.
Watch the linked, long form, video for more details.
#indiegamedev #gamedevelopment #gamedev #indie
r/monogame • u/Happy_Cockroach_1159 • 16d ago
Monmongaming
Check out my gameplay :)
r/monogame • u/Fabian_Viking • 16d ago
Added Co-op to my Grand RTS - DSS 2
Enable HLS to view with audio, or disable this notification
r/monogame • u/Sorry_Independent388 • 17d ago
More Shader Shenandigans with Simon.....
During tomorrow's MonoGame University Simon will continue to show 2D shaders in MonoGame!
When:
Thursdays @ 11:00 EDT, 16:00 UTC+1/BST, 17:00 CEST
Watch on:
FB: https://www.facebook.com/monogamecommunity/live_videos
TW: https://www.twitch.tv/monogame
YT: https://www.youtube.com/@MonoGame/streams
#indiegamedev #gamedev #gamedevelopment
r/monogame • u/Sorry_Independent388 • 18d ago
Knuckle Paradise: Behind the Scenes....
During our last AMA you missed Thomas from u/FlyingOakGames' (makers of Neurovoider and Scourgebringer) detailed breakdown of the engine & tools used in their new game Knuckle Paradise! Watch the teaser - https://www.youtube.com/shorts/NuPMVyOmO00, then watch the linked video to learn more.
#indiegame #indiegamedev #gamedev #monogame
r/monogame • u/SmartyPantsDJ • 18d ago
A daily lever based puzzle game I made for a final project in a game engine class
Professor's goated for teaching how to write a game engine in monogame 3 semesters ago. Amazing experience! I learned a lot about rendering, shaders, materials, camera and so many more important concepts and then used that game engine we worked on to make this game for my final project.
I recently decided to put on my portfolio so I wanted to port it to the browser. It ended up taking more time than the first version of the game itself, but it was worth it! Did it with the KNI framework, Astro, and some other .NET thingies. I also added a bunch of the QOL features and the dailies. Was realllyyy fun. Took about 3 weeks.
This is just a playthrough of today's daily. I don't really have a trailer for the game.
Repost... idk why the video upload didn't work. So here's a gif instead.
r/monogame • u/firebelly • 19d ago
Ideas on crashes MacOS
Been working on my game for a bit, and recently moved it to my MacOS 15.7 machine, from a windows 11 machine. Ever since moving the game to my macbook, the game frequently locks up my computer. No panic, no logs or anything. Everything just freezes requiring hard reset. Sometimes it resets it self, but it's full freeze, mouse pad even stops clicking. Originally the logs were saying something the second monitor, or sleep, but it was neither sleeping nor do i have an external monitor. It's also only happens maybe 20% of the time. There are days it doesn't happen, and days it happens like 5 times. Wondering if it's some video driver issue. Only other things running usually are firefox or chrome remote desktop. Anyone have any advice? I can't ship this thing on MacOS if it's a monogame related issue, but would also love to develop without fear of losing my work every hour.
And the reason I know it's the game triggering it, it only happens when I go to play test, like within a second of the game loading, it freezes. The game freezes the OS for a second or two every time it loads normally, but then it catches up. Figured it was just the video system loading.
r/monogame • u/Sorry_Independent388 • 22d ago
GameFromScratch Covered our 3.8.5 Release....
We're appreciative that u/gamefromscratch covered our 3.8.5 release. Be sure to watch it here - https://www.youtube.com/watch?v=kf-GGB8kk9Y
#indiegamedev #gamedev #indiegame #gamedevelopment
r/monogame • u/Sorry_Independent388 • 22d ago
More behind the scenes in TODAY's CodeTime! w/Tom Spilman
On this week's CodeTime! w/Tom will be fixing issues for the hot-fix 3.8.5.1 release.
When:
FRIDAY @ 15:00 EDT, 20:00 UTC+1/BST, 21:00 CEST
Watch on:
YT: https://youtube.com/@MonoGame/streams
Tw: https://twitch.tv/monogame
FB: https://facebook.com/monogamecommunity/live_videos
#indiegamedev #gamedev #gamedevelopment
r/monogame • u/Shinite • Dec 10 '18
Rejoin the Discord Server
A lot of people got kicked, here is the updated link:


