Kotlin LibGDX/KTX RPG Tutorial - Part 06 (TiledMap)
This is a tutorial series about game development using Kotlin, LibGDX with LibKTX extensions.
We are developing a small 2D adventure RPG using different technologies like Box2D, GdxAI, Entity Component System or Tiled.
The full source code of the tutorial can be found on github: https://github.com/Quillraven/MysticWoods
Part 06 - TiledMap:
In this part we are going to learn how to render a TiledMap in LibGDX and also learn about the rendering problems that can occur like texture bleeding and the solutions to it.
We will render background and foreground layers to our current screen.
Link to Tiled: https://www.mapeditor.org/download.html
Link to the texture bleeding issue: https://stackoverflow.com/questions/63314823/how-to-prevent-texture-bleeding-in-a-tilemap-in-libgdx
Link to Object Pooling: https://libgdx.com/wiki/articles/memory-management
Chapters:
00:00 - ECS Entity
03:06 - Introduction to Tiled
10:18 - Creating a Tileset Part 1
12:40 - Texture Bleeding
24:45 - Creating a Tilset Part 2
26:29 - Creating the map
29:45 - Load TiledMap in LibGDX
31:30 - Scene2D events
34:13 - Event pooling
38:39 - Updating the RenderSystem
50:49 - Animated tiles
53:21 - Render result
55:15 - Disposing the MapRenderer