Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

How to create and load different levels in MonoGame?

$
0
0

@ddabrahim wrote:

Hi all!

I'm new to MonoGame and C#. I've been using MonoGame for about a month now and I'm making good progress, but there is one thing I have a hard time to figure out or find any tutorial, documentation or answer about it. And that is how MonoGame can handle different game levels and be able to switch between the levels, go from level1 to level2.

I was searching online and what most people seem to do is simply control when certain sprites and text drawn on the screen and when to update them by simply changing a variable when we are at the main menu or in the game. But it doesn't seems the right solution when you try to make a big game with 10, 20, 30 levels Or is it?
Do I need to use the same Load, Update and Draw functions of Game1 to get the content loaded, updated and drawn for every single level in the game? But how would you load/unload content from memory as you need it for the levels? What I want to do is wipe level1 from memory and get level2 loaded then wipe level2 and get level1 loaded updated and drawn if I want to, when I want to.

I would like to do this right but I'm not sure how. I can't find any information on this.
Is there any tutorial, documentation, example or a book that do explain this topic in detail?
It would be a 2D game.

I would appreciate any help.

Thanks.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles