Original Post
Hello everyone,
I'm currently searching for a better way to manage my 2D game animation sprite sheet than what is currently shown in each XNA tutorial. The challenge here is that each sprite sheet correspond to a different "game entity" (Enemy, map tile, etc) and I each can behave differently and have different informations associated to them. So I need somekind of metadata to be attached to each of my sprite sheet. (For exemple, line one is running left, line 2 is running right, line 3 is jumping) and the size the sprites on the sprite sheets etc. So basicly at the moment I may have a sprite sheet in my content, and an associated xml file for each of these files. The problem about this technique is that I don't know at compile time that I'm missing an xml file and thus may crash my game, and the bigger the game gets, the harder it is to find such problem. Also it gets heavier every sprite sheet to "manually" manage the metadata of each file.
So as you can see I'm searching for a better solution, how bigger game handle their sprite sheet content. This will get important specially when I will have to create a level editor that should make use of the sprites that I will have in my content and I absolutly need to avoid using both as two separate list so It doens't crash at runtime because a there is a missing sprite sheet.
I'm also looking about advanced tutorials on effecient content management related to my problems if you have any.
And I'm also looking about level loading/management tutorials if that exist
Thank
I'm currently searching for a better way to manage my 2D game animation sprite sheet than what is currently shown in each XNA tutorial. The challenge here is that each sprite sheet correspond to a different "game entity" (Enemy, map tile, etc) and I each can behave differently and have different informations associated to them. So I need somekind of metadata to be attached to each of my sprite sheet. (For exemple, line one is running left, line 2 is running right, line 3 is jumping) and the size the sprites on the sprite sheets etc. So basicly at the moment I may have a sprite sheet in my content, and an associated xml file for each of these files. The problem about this technique is that I don't know at compile time that I'm missing an xml file and thus may crash my game, and the bigger the game gets, the harder it is to find such problem. Also it gets heavier every sprite sheet to "manually" manage the metadata of each file.
So as you can see I'm searching for a better solution, how bigger game handle their sprite sheet content. This will get important specially when I will have to create a level editor that should make use of the sprites that I will have in my content and I absolutly need to avoid using both as two separate list so It doens't crash at runtime because a there is a missing sprite sheet.
I'm also looking about advanced tutorials on effecient content management related to my problems if you have any.
And I'm also looking about level loading/management tutorials if that exist
Thank