Thread: C++ or C# for game creation

  1. #1
    Registered User Puppet Master's Avatar
    Join Date
    Dec 2005
    Posts
    7

    C++ or C# for game creation

    Sorry for the noob question but I've only just started C++ programming.

    What I was wondering is what is the main language for programming commercial PC games?? I'm talking about the big ones such as DOOM or Quake, AoE and such. I'm interested in getting into the games industry later and I wan't to know whether they still use C++ or is C# taking over as the preferred language??

    I realise that its going to be years before I can even think about building games like that but I was still curious as to where to begin.

    Thanks in advance.

  2. #2
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    968
    Doom, quake, AoE = C++

    C# is comin on fast though, or at least it looks that way, i for one know nothing about C# though.
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

  3. #3
    C(++)(#)
    Join Date
    Jul 2004
    Posts
    309
    It doesn't really matter much. Unless you plan on making the next Quake or Unreal game, you don't really need anything super fast.
    To code is divine

  4. #4
    Registered User
    Join Date
    Jan 2006
    Posts
    8
    Well I havn't worked with it myself as of yet apperently mananged directx using c# is easer to use then directx with c++

  5. #5
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    968
    well alot of languages are "easier to use" than C++, doesn't mean theyre better
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

  6. #6
    C(++)(#)
    Join Date
    Jul 2004
    Posts
    309
    Quote Originally Posted by Shamino
    well alot of languages are "easier to use" than C++, doesn't mean theyre better
    There is no such thing as a "better" language. Each language is good in its own domain. For example, C++ sucks when it comes to making Windows apps quickly, a task much better fit for a language like C# or VB.
    To code is divine

  7. #7
    Registered User Puppet Master's Avatar
    Join Date
    Dec 2005
    Posts
    7
    Quote Originally Posted by 7smurfs
    For example, C++ sucks when it comes to making Windows apps quickly, a task much better fit for a language like C# or VB.
    So what is C++ good for?

  8. #8
    Yah. Morgul's Avatar
    Join Date
    Feb 2005
    Posts
    109
    Specifically interface programming, but definitely game programming.
    Sic vis pacum para bellum. If you want peace, prepare for war.

  9. #9
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379
    If you're looking for a job at commercial programming C++ is the way to go. (Currently at least). I dont know enough about C# to comment on it though.

    C++ doesnt take that long to make games though. (Simple ones at least)
    Code:
    Error W8057 C:\\Life.cpp: Invalid number of arguments in function run(Brain *)

  10. #10
    Registered User
    Join Date
    Jan 2005
    Posts
    106
    C# is based in .NET framework, which means that it takes portability hits if you use it for, er, what it was meant to be used for. Whatever that is. Honestly, I don't think it's meant to supercede C++. I think it's meant to be an alternative to it for specific, .NET geared processes.

  11. #11
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    It doesn't really matter much. Unless you plan on making the next Quake or Unreal game, you don't really need anything super fast.
    I couldn't disagree more. This statement is absurd. If that is true, hell just program your game in BASIC and chuck C/C++ out the window. After all I'm not coding Quake 5 here.

    C# IMHO is just MS's way of tapping into the Sun Microsystems cash flow for Java.

    VB is a sad attempt at making a non-object oriented language.... object oriented.

    MFC makes it easier key word: easier to make Windows apps in C++. And the difficulty of making Windows apps in C/C++ has nothing to do with the language. It has everything to do with Windows.

    I say use C++ but what the hell do I know?

  12. #12
    Registered User
    Join Date
    Jan 2005
    Posts
    106
    I recall playing some QBasic games. Sprite loading took awhile, and, er, they were generally pretty clunky. Dunno if this was limitations int he developers programming, or the langauge, but it seemed to be a common problem in a lot of the QB games I played.

  13. #13
    C(++)(#)
    Join Date
    Jul 2004
    Posts
    309
    I couldn't disagree more. This statement is absurd. If that is true, hell just program your game in BASIC and chuck C/C++ out the window. After all I'm not coding Quake 5 here.
    Let me rephrase that: If you do not already know C++, and want to make a game yesterday, then using C++ would be inefficient. C# is good for beginners to make a nice quick game, or if the programmer doesn't have time necessary to programming in C++. There is nothing wrong with using C#, VB, or anything to create a game so long as it gets the job done effectively.
    To code is divine

  14. #14
    Registered User
    Join Date
    Nov 2004
    Location
    Pennsylvania
    Posts
    434
    I would recommend C++, most of the Industrial games made today (if not nearly all of them ) are done in C++.

    As for C# i know nothing about it other than what has already been mentioned (.NET framework, Sun Microsystems, Microsoft trying to take over...more(lol how'd that get in there?!))

    I would suggest cruizing the forums, reading some internet tutorials and then picking which one you like. But i feel that C++ is more geared towards the tasks your looking for.

    Once you pick get good BOOKS! They cost money yeah (Something i dont have a lot of lying around as i do this for a hobby, School is my job (for now) ) But books are invaluable. I personally think that books (non-fiction about any topic) are one of the greatest things in the world. If its in a book its usually thorough and correct (unless its outdated). The forums here are also another Invaluable asset as far as C++ goes. You can search the forums for some "Good Book" threads. Check Amazon.com too and read the reviews. Good luck!
    "Anyone can aspire to greatness if they try hard enough."
    - Me

  15. #15
    I am me, who else?
    Join Date
    Oct 2002
    Posts
    250
    If you are just thinking about games, then C++ is probably a decent place to start. As of current most of the games you see flying about are C++ based. MFC is good for more of application situations, that is, if you wanted to make a model viewer, or some sort of productivity app, the performance lost is generally minimal to the time invested in creating all dialogs and everything needed.

    As has been said before if you are looking for performance (and much literature), for gaming C++ probably has the best to choose from. There's a fair amount of code, and articles going around that it would make sense to choose C++. Best of luck to you, its a hard field, but definately rewarding.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 12-16-2008, 02:43 PM
  2. Thread creation
    By C3Pnuts in forum C++ Programming
    Replies: 0
    Last Post: 04-11-2006, 05:54 AM
  3. program not working...please look at this
    By JOlszewski in forum C Programming
    Replies: 3
    Last Post: 01-30-2006, 10:33 PM
  4. Dynamic Creation of an object
    By axr0284 in forum Windows Programming
    Replies: 3
    Last Post: 02-05-2005, 10:27 AM
  5. Newton + Einstein were wrong!
    By Jez in forum A Brief History of Cprogramming.com
    Replies: 64
    Last Post: 12-14-2004, 02:24 PM