I have little experience in writing a simple games on XNA, but now i dont have knowns to solve my problem.
So, i want to write simple racing 2d-arcade, and i dont know how i can do maps for this game.
I decided do this so:
I draw a picture-map in mspaint. Black - its grass, white color - its road, red color - road markings, blue - water, green - forest, etc.;
After the image is loaded, I override textures in XNA - on white color i place texture of road, on black color i place texture of grass and etc.
So i have 2 questions.
- I think in the right direction?
- How i can to know color in desired pixel and how i can pour all white color, not each pixel separately? Second question not required, because i can just do second image with normal textures, and place this on second layer, right?
Sorry for really bad english. And thanks for answers advance.