Let's say I have square tiles, each 32x32 pixels, like
the old Warcraft game. And one building is placed in
the middle of 9 tiles, 3 tiles wide x 3 tiles high. How
exactly is the building image stored and drawn? Let's remove
the concept of units for the moment and just focus on the
ground and buildings.
I can think of two ways:
1. Everything is stored as 32x32 pixels. This means the
buildings are cut up into 32x32 pixel images with transparent
outlines to let the background show through when blitted.
For each tile, the background is drawn, and then the corresponding
building section is drawn on top. This is drawn together
in one sweep.
2. Only the background is stored as 32x32 pixels. The buildings
are stored as full images. So in this case, this building
would be stored as a complete 96x96 pixel image with a transparent
outline. The full background is drawn first in one sweep,
The the buildings are transparently in a second sweep.
Which way is better and are there other ways of doing it?
Reaver