开发者

XNA Level config file in C#

I'm working on as small game for class and was wondering what is a easy way to handel level configuration files. Like object placements , names, etc.

I'm new to C# but fluent in Java, Ruby.

so XML? YM开发者_如何学PythonL? text, serialized objects?


First thing that came to mind: LUA; it's pretty generic and there's a good class available for it: http://xnua.com/xna_lua_xnua


Really depends on what you're doing. I teach using XNA, and to my first semester students I recommend plain text files, and for my second semester students I have them use XML since XNA already has a content importer for XML. Also keep in mind that lua/python cannot be used on the 360 because both use reflection.


I use Xml files, xna has a greate serializer for working with these. It's called the IntermediateSerializer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜