tileMap from tileSet image


I’m new developer and I want to make 2D map editor but I ran into problem.

lets say tileSet img is 320×320 and my tiles are 32×32. That makes I should get 10 different tiles (terrain types)

but how do I cut tiles out of tileSet and save it on array for future use in code?

many thanks.

submitted by /u/Janek_Tuisk
[link] [comments]

Leave a Reply