Libgdx tutorial beginner Part 3 – Map

Libgdx tutorial part 3, time to add some movement to the player and our main focus will be on how the map is rendered.

  • Here is the stripped down versions of Map and MapRenderer
  • Map contains data and MapRenderer will draw our map usin that data
  • Bob is also created here and will be updated by the Map class
  • Tiles are added according to the levels.png, each pixel represents a tile, ex. white ones are walls, blues are lasers etc.
  • We also edit the GameScreen to start rendering our Map
  • Dispensers are checkpoints, once you collide with it, it will get updated


Recent Posts

Recent Comments

Categories