Learning SDL, problem with a tileset in 2d game
Ive been learing sdl from this series. But the map.cpp from video does not work as intented, ive written diff map file but i still have 1 problem. Well, in the video the guy says that the tiles in the tileset should be accessed but row and col, but this does not work for me. I have 25 tiles in a 8×4 tileset but every tile has its uniqe number ( so for ex 19 ) and i cant access them using rows and cols (at least i dont know how to do that)
Here’s the code