XNA - Am I screwing up the LoadContent for Texture2D?
Posted
by
Bombcode
on Game Development
See other posts from Game Development
or by Bombcode
Published on 2011-03-14T03:16:35Z
Indexed on
2011/03/14
8:19 UTC
Read the original article
Hit count: 278
I've read forum threads and questions and I done just about everything. I need to know what am I screwing up here.
Here's the code in the constructor.
Content.RootDirectory = "GameStateContent";
//Content.RootDirectory = "Content";
And this is in the LoadContent method
menu = this.Content.Load<Texture2D>("mainmenu");
And here's the image screen shot of the folder structure. http://i.imgur.com/HnndE.png
Any helps on this?
Thanks.
© Game Development or respective owner