开发者

XNA Level config file in C#

开发者 https://www.devze.com 2022-12-28 08:59 出处:网络
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 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

精彩评论

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