Basic Map Creation
I''m just embarking on my game development hobby and am using the MFCs and Visual C++ to create a basic hex-based map.
I want to render the terrain values I''ve assigned to my hexes graphically in a view. Does anyone have any suggestions or resources that could help me proceed?
Thanks.
Hello,
Hmm. I can interpret your question in very different ways since it was very vague! be more specific next time...it wont hurt anyone.
If your asking an MFC specific question on how to blit bitmap graphics to screen i cant help much.![](sad.gif)
If your asking more in general how to display a "tile" graphic for the map position & terrain type, i have a solution. Use tilesets. Which means putting most if not all your terrain tiles on a single surface. The number you assign, your "terrain type" is used as the index into the the tileset surface. If you do it correctly, the numbers you assign should make the math calculations correctly point to that specific graphic in the tileset. If you dont know what i mean by surface, its the data structure used by your graphics api to hold the bitmap info.
Visit my planet: Planet John
Capt. James Tiberious Kirk -- hmm, didnt know ole Capn was a tiberia fan.
quote:
I want to render the terrain values I''ve assigned to my hexes graphically in a view. Does anyone have any suggestions or resources that could help me proceed?
Hmm. I can interpret your question in very different ways since it was very vague! be more specific next time...it wont hurt anyone.
![](smile.gif)
If your asking an MFC specific question on how to blit bitmap graphics to screen i cant help much.
![](sad.gif)
If your asking more in general how to display a "tile" graphic for the map position & terrain type, i have a solution. Use tilesets. Which means putting most if not all your terrain tiles on a single surface. The number you assign, your "terrain type" is used as the index into the the tileset surface. If you do it correctly, the numbers you assign should make the math calculations correctly point to that specific graphic in the tileset. If you dont know what i mean by surface, its the data structure used by your graphics api to hold the bitmap info.
Visit my planet: Planet John
Capt. James Tiberious Kirk -- hmm, didnt know ole Capn was a tiberia fan.
![](tongue.gif)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement