Thursday, October 28, 2010

Game Save and ModelBone Class

So I started working on game level save, load, delete options. In regards to file system I've chosen to save games in the given location the gamer can't change. Files will be handled in the directory next to .exe file (bin folder) where also the image storage is. Need to figure out exactly what StorageDevice class does.
Sources:
http://msdn.microsoft.com/en-us/library/bb199073(v=XNAGameStudio.31).aspx
http://msdn.microsoft.com/en-us/library/bb200105.aspx

In regards to previous blog I finally found a tutorial for animations in XNA 3.1. It uses ModelBone class and seems to be quite usefull. I am planning to wrap it in AddChild(), RemoveChild(), Transfer(), Rotate() methods. Combined model can move as one and its parts can move independently relatively to the model's center. Here is the video shot from the tutorial to get the idea:



This would allow us to build modular ships and some cool animations with complex models.
Sources:
http://create.msdn.com/en-US/education/catalog/sample/simple_animation (XNA 4.0)
http://www.toymaker.info/Games/XNA/html/xna_matrix.html (XNA 3.1)
http://www.toymaker.info/Games/XNA/html/xna_models.html

No comments:

Post a Comment