posted 12 years ago
From a tutorial on making games, this is a ResourceManager class that handles Sprites and map loading. With the help of another class, it loads a text file that uses char values to be parsed into something like a tree, ground, rocks, and character sprites. Each image makes up the entire map.
In the loadmap() method, this is the line of code where I'm confused at.
ch is a char value. But its acting like an int value in that operation. I get that char variables have their int values. I don't know why but that's the fact. What I don't understand is how that statement is used in the "for" loop.
How does help parse each char into a tilemap image?