Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am working on a game, sort of like this and I want to convert it to C#, as it is currently written in Python. The reason of this is because I can add features more easily and with less writing in C#, and I do NOT want to write it all again, with all of the glitches and testing having to be redone. Is there any program of internet service that can do so, for free? I don't have extra money to spend on this, which is just for fun. Thanks for all feedback, edits, and suggestions!

Edit: I use Wing IDE 4.1 for my Python coding and the Unity Version of MonoDevelop for C#.

share|improve this question
    
I don't believe there's an exact PyGame equivalent for C#, so you'll have to build your code off another library. But since you've already solved all your bugs/glitches, you'll know the solution as soon as you encounter it, so it won't be as bad. –  Robert Rouhani Jun 15 '13 at 23:54
    
@RobertRouhani Thanks! That's true, and I may try to use Unity for the graphics instead of using PyGame. Most of the bugs took lots of tries to fix, so hopefully it will take less time this time around :P –  Pip Jun 15 '13 at 23:56
4  
@PythonInProgress: will you be CSharpInProgress from now on? –  Sean Middleditch Jun 16 '13 at 1:18
1  
The answer is No, not an easy way. Some tools exist: developerfusion.com/tools/convert/csharp-to-python And you might be able to use IronPython and actually reuse your Python code from C#. (Just guessing here, but maybe its the same as Java & Groovy) –  sm4 Jun 16 '13 at 2:12
    
@SeanMiddleditch Maybe, but probably not. I think I'll use the 'company' name I have from now on. –  Pip Jun 16 '13 at 14:02

1 Answer 1

up vote 3 down vote accepted

In general, "translating" code from one language to another (or to run on one system or another) is called a port (note interesting relation or port to portable).

Ports take a lot of work, and although there are many tools out to "help" you perform the task of porting, it's largely going to be a manual process.

If you want to program in C#, a good thing to do is just re-implement your program in C#, using your Python code base as a reference. Along the way you could find and make some improvements.

share|improve this answer
    
thanks @bobobobo that helps a lot more than you would think. –  Pip Jun 16 '13 at 20:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.