By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,127 Members | 1,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,127 IT Pros & Developers. It's quick & easy.

Game development

P: n/a
Well, I'm very interested in game development, I'm just starting out though,
browsing here and there for tutorials, references, etc.. and learning about
the game development industry...

What i've realized is that, apparently, most of the games out there are
likely to be coded in C++, is this because the language offers features
which are better suited for game development? or just because it has been
out in market for a longer period of time than C# (for example)?

Latest games like Gears of War (for example), are coded in C#? is this an
appropiate language for game programming?
Jul 24 '08 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Benjamin,

I don't believe Gears of War was done in C#.

If you want to do game development in .NET, check out the XNA kit. It
will allow you to create games for the XBOX 360, and I believe, the windows
platform.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Benjamin Vigneaux" <be**@mi.clwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Well, I'm very interested in game development, I'm just starting out
though, browsing here and there for tutorials, references, etc.. and
learning about the game development industry...

What i've realized is that, apparently, most of the games out there are
likely to be coded in C++, is this because the language offers features
which are better suited for game development? or just because it has been
out in market for a longer period of time than C# (for example)?

Latest games like Gears of War (for example), are coded in C#? is this an
appropiate language for game programming?


Jul 24 '08 #2

P: n/a
On Thu, 24 Jul 2008 12:23:51 -0700, Benjamin Vigneaux <be**@mi.clwrote:
Well, I'm very interested in game development, I'm just starting out
though, browsing here and there for tutorials, references, etc.. and
learning about the game development industry...

What i've realized is that, apparently, most of the games out there are
likely to be coded in C++, is this because the language offers features
which are better suited for game development? or just because it has
been out in market for a longer period of time than C# (for example)?

Latest games like Gears of War (for example), are coded in C#? is this
an appropiate language for game programming?
You've asked a very complicated question. I'm not going to offer a very
complicated answer. :)

That said, there's nothing fundamental about C# that would preclude coding
a 3D shooter (for example) in that language. I think the biggest issue
would be the non-deterministic memory management, which could lead to
frame rate stuttering. But I think that there are techniques one could
use to minimize the issue, if not eliminate it altogether.

The other question is whether you can get at DirectX via C#. The short
answer is that you can. For example, XNA provides this if I recall
correctly. Last I heard, you needed to use an Express version of Visual
Studio to use XNA, and that could be a bit of a barrier. But for all I
know, that's no longer true, and in any case I think that's more of an
arbitrary limitation Microsoft imposted than something fundamental about
the language.

I think that the biggest reasons games are mostly coded in C/C++ is just
inertia and support. That's how those kinds of games have been written
for a long time and so people are used to doing it that way. Not only
does it make sense to stick with the code base you've already got just
from a practical point of view (why rewrite something that already
works?), it's probably easier to get experienced help and pre-packaged
libraries to help with game development if you do that.

I'd say that if you're interested in both C# and game development, you
should definitely check out XNA. If there's a reasonable way to write
games in C#, I'd guess that's the most likely candidate at the moment. :)

Pete
Jul 24 '08 #3

P: n/a
XNA works on the full version of VS too.
Jul 24 '08 #4

P: n/a
Benjamin Vigneaux wrote:
Well, I'm very interested in game development, I'm just starting out
though, browsing here and there for tutorials, references, etc.. and
learning about the game development industry...

What i've realized is that, apparently, most of the games out there are
likely to be coded in C++, is this because the language offers features
which are better suited for game development? or just because it has
been out in market for a longer period of time than C# (for example)?
For simple to intermediate games then C# would be an excellent choice.

I believe there game toolkits available.

For the most advanced games, then I think they will continue to
use C/C++.

The usage of C/C++ is to some extent historic determined. But
the real advanced games some of the parts especially for graphics
needs to be highly optimized for the hardware. I guess you
could use a mix of safe C#, unsafe C# and C/C++. But there
are not much point - if safe C# does not fit the task, then
doing it all in C/C++ is simpler.

Arne
Jul 24 '08 #5

P: n/a
Thank you very much for your replies!
Jul 24 '08 #6

P: n/a

"Peter Morris" <mr*********@SPAMgmail.comwrote in message
news:Or**************@TK2MSFTNGP04.phx.gbl...
XNA works on the full version of VS too.
Last time I looked, XNA only worked with VS 2005.

(or, more accurately, the Help system only worked properly with VS 2005).
Jul 27 '08 #7

P: n/a

"Peter Webb" <we********@DIESPAMDIEoptusnet.com.auwrote in message
news:48**********************@news.optusnet.com.au ...
>
"Peter Morris" <mr*********@SPAMgmail.comwrote in message
news:Or**************@TK2MSFTNGP04.phx.gbl...
>XNA works on the full version of VS too.

Last time I looked, XNA only worked with VS 2005.

(or, more accurately, the Help system only worked properly with VS 2005).

The next version (3.0) will support VS2008. It is currently available as a
CTP...

http://www.microsoft.com/downloads/d...displaylang=en
Jul 27 '08 #8

This discussion thread is closed

Replies have been disabled for this discussion.