XNA: Auto-populate content within the content project based on current folder/file structure and content management for large games
Posted
by
Joe
on Game Development
See other posts from Game Development
or by Joe
Published on 2013-09-04T00:32:11Z
Indexed on
2013/10/27
4:16 UTC
Read the original article
Hit count: 335
XNA
|xna-content-pipeline
1) Is it possible to implement a system where I can simply drop a new image into my content project's folder and VS will automatically see that and bring it into the project for compiling?
2) Similarly, if I wanted a specific texture I could state something like var texture = Game.Assets.Image["backgrounds/sky_02"];
(where Game
is the standard XNA Game class and Assets
is some kind of content manager statically defined within Game
). I know this is fairly simple to implement manually and have done such things in the past (static Dictionary
defined within Game
) except this only works for relatively small games where you can have all assets loaded at the start without much issue. How would you go about making this work for games where content is loaded and unloaded based on level / area?
I'm not asking for the solution, just how you would go about this and what things you would have to be aware of. Thanks.
© Game Development or respective owner