Loading Tile Maps From Text Files In Slick2D
问题 I am making a fairly simple 2D Game Engine in Java using the Slick2D Library, and am trying to load levels (tile maps) from a text file. I want to be able to load in multiple different tilesets, and therefore don't want to assign each number to a tile like this: 1 1 1 1 1 1 0 0 0 1 1 0 0 0 1 1 0 0 0 1 1 1 1 1 1 (Where 1 is a wall and 0 is a floor) instead, I would like to be able to use x and y coordinates in the tilemap to represent how many tiles across and down the tile is located at on