Saving GUI parameters to text document?

Hi,

Im starting a university project on a simple game Im going to create. Creating the game part is no problem.

I want a changeable parameter, like gravity, within my game and it saved to a text file for analysis.

How can I make a GUI where I change the gravity for example, and have a button to save these parameters to a text file? or something similar so i can analyse?

Thank you

It ought to be as in any other C# environment… these links may help you get started:

http://msdn.microsoft.com/en-us/library/aa287548(v=vs.71).aspx
http://msdn.microsoft.com/en-us/library/vstudio/8bh11f1k.aspx

HTH,

  • Joe

Slider to set value

Button to save to file

Code to save to file

http://www.csharp-station.com/howto/readwritetextfile.aspx