I suddenly became interested in game programming and started to learn xNa to reduce the boring work at ordinary times.
Today is the first day of study. Happily posted this document <xna4.0 Learning Guide>, or the Chinese version. I was a little excited at the beginning of the introduction. When you see the first xNa example, you can immediately start the process.
As a result, I quickly met a Buddha. I want to load an image by setting its attributes as content in the project. HoweverProgramWhen you run texture. Load () in the loadcontent () method, a loading error is always prompted. Either the system prompts "cannot open file" or "file not found.
After ensuring that the path is correct, the program still does not work properly. I had to worry about it. I had to urinate and felt helpless and uncomfortable.
I then looked back and read the materials carefully. I suddenly saw a sentence: all the resources you used in the game should be put in the project projectnamecontent (content), rather than under the main project.
I had a thorough understanding that such a simple problem had been entangled for so long, but it was caused by the lack of good-looking references and the lack of resources.
After the resource location is corrected, it can be started properly. It's really sad, so I can't name it.
Let's take a look at the documentation. It's not a mistake to cut firewood workers, so it's just a breeze ~