Hello! Im trying to draw a map from a file and it’s not working as I want it to work.
Here are the classes:
Tile.h and .cpp
Load=[Attributes] - it’s like we want to load text or image, we pass there text then after that contents are like what text we want to display or what image we want to show. In this case there is an image 96x32 and every 32 frame got a different color which draw our map, [2,0] means it’s blue, [1,0] means it red, the first coordinate contains x, the second y.
Code is based on Coding Made Easy allegro 5 platformer tutorial…