Archived

This topic is now archived and is closed to further replies.

neural_dancer

is there a future for c# in game programming?

Recommended Posts

I am just beginning with game programming. I-m learning c++ and open gl. I am also a web programmer so i-m using a beta of Visual Studio.Net. I saw some articles about c# and how cool it would be in web application development and how much easyer it would be in developing stuff instead of c++. Now i would like to know if c# would be good enough to use with open gl and direct x for game development?

Share this post


Link to post
Share on other sites
not yet. right now it runs slower than c++ code. It closely resembles vb as far as speed. maybe someday they will speed it up enough for game programming.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Basic itself has been around for years...never has gotten as fast as natively written code.

Share this post


Link to post
Share on other sites
C# is a language that will be dominated and controlled by Microsoft. MS products have a history of being instrusive, abusive, bulky, and unreliable. C++ is a far safer bet, if the world starts coding all apps in C#, MS gains control of a LOT.

Resist Windows XP''s Invasive Production Activation Technology!

Share this post


Link to post
Share on other sites
actually C# is pretty much a standard - MS itself can not change it and still call it C#. Java and Sun, on the other hand...

You know, I never wanted to be a programmer...

Alexandre Moura

Share this post


Link to post
Share on other sites
Question: What is C#?

Is that like cScript of like C or something else I dont even know about...

"Ogun''s Laughter Is No Joke!!!" - Ogun Kills On The Right, A Nigerian Poem.

Share this post


Link to post
Share on other sites
C# is M$ version of Java; they created it after they lost a law suit to Sun about illegal modifications of the Java standard.

C# is more like C++ in syntax than Java is, however it only supports single inheritence like Java (unlike C++). It makes no distinction between objects on the stack and objects on the heap - all are dereferenced by the . operator. This might be a big deal if C# didn''t also have automatic garbage collection.

With .NET VB, C#, & C+++ all use the same compiler and same COMponents to access OS services. In a program that perform the same task using the CLR (common language runtime) COMponents the performance between the applications should be identical.

However, if you program in C or C++ you don''t have to use the CLR or any of the newfangled COMponents. All the existing APIs will still be supported by Windows.

So yes, you can write games in C#, as well as Java and VB. A significant amount of the time critical code is behind the DirectX interfaces, which will be accessed in a consistent manor from all the languages with .NET.

Any time I try to use any tool other MSVC, for any purpose, I get pissed about it''s limitations; your-milage-may-vary.


...
M$ has wildly changed Visual Basic (for the better) over the years, and it''s still called VB...



Magmai Kai Holmlor
- The disgruntled & disillusioned

Share this post


Link to post
Share on other sites
quote:
Original post by alexmoura

actually C# is pretty much a standard - MS itself can not change it and still call it C#. Java and Sun, on the other hand...




The C# language specification is standard and open, which means anybody can implement they''re own version of it, BUT all the libraries and stuff are tied up with microsoft, i.e. everything that makes it useful. These are not standard and will probably be prone to as many alterations as all microsofts other stuff.

This is exactly the same with Java, although there are different versions of the language spec. i.e. 1.1,1.2 etc



thi sis my si gitzt hebezt

Share this post


Link to post
Share on other sites
is there a future for c# in game programming?

*shakes magic eight ball*

Ask at a later time

Share this post


Link to post
Share on other sites
quote:
Slashdot hates Microsoft for a reason, you know.


Yeah - because it''s filled with idiots who insist on calling them Micro$oft. My, how witty...

Share this post


Link to post
Share on other sites