Thinking about the tileset blitting function i have changed my mind, i have realized that it's easier to make just one blitting function that can draw tiles using a grid system and adjust the tiles with an x and y offset.
Now let's change the function:
Notice: OX and OY >> (Offset X and Y)
That way we can use the same function to draw the map, the pcs , npcs and the mouse cursor, in fact we are going to change the mouse drawing function too so it will be like:
Easier that way , right?
In the next post, i will show how to draw a multi - layer map...
see you soon