Loading the tile map

 Tile Maps:

What is it?

"Tilemaps are a very popular technique in 2D game development, consisting of building the game world or level map out of small, regular-shaped images called tiles. This results in performance and memory usage gains — big image files containing entire level maps are not needed, as they are constructed by small images or image fragments multiple times."
                                                                                        -From developer.mozilla.org
 

In This tutorial we will be using the Tiled Map Editor

I will not be showing how to use it or anything there are lots of resources for that.
You can use your own tilemap but just in case you want to use the one I will be using 
Here it is

Want a video version?



The Text version:

The Code and Explanation:

The Tilemap manager class:




The Game1 class:

Comments

  1. hi, thanks for the content, do you have any idea how to handle the multiple screen resolutions and the size of the sprites according to this, thanks

    ReplyDelete
    Replies
    1. Heyy thanks for replying. :)
      I am actually pretty new to this so no I don't have any idea currently
      You should probably ask in the monogame discord. They are a helpful bunch

      Delete

Post a Comment

Popular posts from this blog

Introduction

Tile map collisions