Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / July 2008

Tip: Looking for answers? Try searching our database.

Game development

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Benjamin Vigneaux - 24 Jul 2008 20:23 GMT
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?
Nicholas Paldino [.NET/C# MVP] - 24 Jul 2008 20:33 GMT
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.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> Well, I'm very interested in game development, I'm just starting out
> though, browsing here and there for tutorials, references, etc.. and
[quoted text clipped - 7 lines]
> Latest games like Gears of War (for example), are coded in C#? is this an
> appropiate language for game programming?
Peter Duniho - 24 Jul 2008 20:36 GMT
> Well, I'm very interested in game development, I'm just starting out  
> though, browsing here and there for tutorials, references, etc.. and  
[quoted text clipped - 7 lines]
> 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
Peter Morris - 24 Jul 2008 21:02 GMT
XNA works on the full version of VS too.
Peter Webb - 27 Jul 2008 07:57 GMT
> 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).
Rob Lancaster - 27 Jul 2008 10:52 GMT
>> 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/details.aspx?familyid=df4af56a-58a7-474c-bfd0
-7cf8ed3036a3&displaylang=en

Arne Vajhøj - 24 Jul 2008 21:50 GMT
> Well, I'm very interested in game development, I'm just starting out
> though, browsing here and there for tutorials, references, etc.. and
[quoted text clipped - 4 lines]
> 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
Benjamin Vigneaux - 24 Jul 2008 23:06 GMT
Thank you very much for your replies!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.