Contents
Why do we need multi-layer tilemap design?
My recent devlog on multi-layer tilemap design. In 2D game design, it is essential to have an organized and efficient way to determine how our tilemaps are designed and how they interact with each other.
How to add a tile layer to a map?
A web-mapping tile service (WMTS) is an Open Geospatial Consortium (OGC) standard for serving tiled based overlays for maps. There are many open data sets available in this format that you can use with Azure Maps.
Can a tilemap be on its own collision layer?
It can get a bit tricky in 2-D games where you essentially have to fake a third dimension (height). This is a tilemap on its own collision layer “Map” even though it does not collide with anything. Its sole purpose is to create what is shown on the minimap.
How are vector tiles used in Mapbox applications?
With MTS, you use sets of configuration options ( tileset recipes) to transform your geospatial data into vector tiles. The resulting tiles are hosted on Mapbox servers for use in your applications. Vector tilesets are helpful if you want to visualize a large amount of data on a map quickly.
Can you put two tiles on the same tilemap?
Create a second tilemap (you can use the same tilset, on both tilemaps). Then you can add two tiles on the same location. When you check for tile type/collision events, make sure you change the tilemap name in the collision function. If many tilemaps can collide, put them in different layers.
How to use y-sort with multi-layered isometric tilemaps?
Z-index of the layer it is on + n. with n being a number between the z-index of the layer and the z-index of the next layer. Also make sure that each layer is offset from the previous by a significant enough of a number so that you have enough buffer in-between them precisely so you can add utilitarian nodes between in the draw order.