C
C#6mo ago
osm

Converting a code from C to C#

So I got a game called Velocity Vortex that I coded in C, now I wanna do the same in C# but it’s about 6437 lines of code, how do I do that? There is not a single Ai that I know that can do it
4 Replies
The Fog from Human Resources
A good first step would be learning C# :pwetty:
Pobiega
Pobiega6mo ago
you won't be able to just run it through a readymade tool and have it work. Your best bet will be to manually re-implement it in C#.
Joschi
Joschi6mo ago
Even if you find some tool that does some translation, it will most likely require a lot of work to get that "translated" code working. And then you are most likely stuck with a suboptimal hard to read code base. You are probably not only better off, but also faster, if you re-implement your code in C#.
olsu
olsu6mo ago
it depends why you want it in c#. if it's applicable, you could refactor your code (if needed) to export all the necessary functions to a dll, then import the dll in c#. FNA (C#) does this with FNA3D (c) if you want to see an example
Want results from more Discord servers?
Add your server