Click here to Skip to main content
15,881,516 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have never written codes for games. I am a very good (i think) C, C++, MATLAB and python programmer.
I want to start writing codes for games. Apparently i have to learn C# and use Visual studio.
I don't really like Windows tough (i use Linux: Ubuntu). However, if i have to use Windows to develop
game, so be it.

My questions are:
What language should is use?
What compiler should i use?
Do i really have to learn a new language?
Is there a game that every beginner starts with? (a "Hello World!" type of game) :D

Thank you very much in advance
Posted

What language should is use?
Depends really: Games generally need speed, and to be portable to multiple platforms. If you are looking at Linux based systems to start off with, then C# is not a good choice - you would need Mono on each platform in order to play it. C++ is a good start.
I would be tempted to look at XNA[^] - you could do worse.

What compiler should i use?
Depends on language, platform, etc.

Do i really have to learn a new language?
Quite possibly, yes. If you are seriously intending to write professional games, then you will need to use whatever the rest of the team is using - and gaming teams are well organised nowadays, "back bedroom" productions are not mainstream anymore.

Is there a game that every beginner starts with? (a "Hello World!" type of game)
No! Who wants to write a game that's been done before? :laugh:

Seriously, have a look at XNA: it could be a good starting point, and at least shows potential employers that you have some skill, and are aware that frameworks are needed.
 
Share this answer
 
Comments
Espen Harlinn 30-Jan-11 10:31am    
Three more or less identical answers :)
OriginalGriff 30-Jan-11 10:33am    
Is that "Great minds have the same ideas", or "fools think alike?" I wonder?
Espen Harlinn 30-Jan-11 11:02am    
Rumor has it that I'm a 98.97% fool :) fooling around can be fun too ...
(http://caps.fool.com/player/stockcommander.aspx)
OriginalGriff 30-Jan-11 11:05am    
Yeah, but you're 747 out of 72685, which means there are a lot of bigger fools than you!
I assume that it is play money, rather than real beer tokens you are using?
Espen Harlinn 30-Jan-11 11:22am    
Depends - all of the short stuff is play, and I haven't entered into anything new for a long time.

A near full recovery of the DOW in under two years - somehow I can't make myself believe that this is sustainable; not until we see a significant improvement when it comes to employment related to tangible goods - not iPhones and Apps, but I've been wrong before - there is a reason it's called fool.com
It is certainly possible to write games in C++. It can be hard work though. One advantage of doing it is that you will, hopefully, learn a lot about Windows internals. Google for c++ writing games and you will get loads of useful tutorials as well as loads of advice, both for and against.

You can write games using php writing games the same applies to the results as for c++.

The XNA Game Studio[^] just makes it a lot easier.

Do some googling and reading. Only then will you be able to decide which way to go.
 
Share this answer
 
Comments
Espen Harlinn 30-Jan-11 10:31am    
Three more or less identical answers :)
Sergey Alexandrovich Kryukov 30-Jan-11 11:44am    
My 5 (motivated in comments to Griff's Answer :-)
--SA
>> What language should is use?
If you know C++, you'll probably be better of sticking with it, but c# is an option.
>> What compiler should i use?
Microsoft Visual C++ enjoys better support than any other compiler, even by open source projects
>> Do i really have to learn a new language?
No, but you might enjoy it. If you know C++, C# shouldn't be too hard to learn.
>> Is there a game that every beginner starts with? (a "Hello World!" type of game)
Download XNA GameStudio[^] and take a look at Ogre3D[^] - both have ample starter projects and tutorials.

If you want to take advange of existing code, I would say that C++ offers the wider range of high quality libraries. Most "real" games use C++ and add/use DSLs and scripting capabilites as needed.

Away3D[^] offers some amazing capabilites if you would like to put your game inside a web browser :)

Regards
Espen Harlinn
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 30-Jan-11 11:45am    
My 5 (motivated in comments to Griff's Answer :-)
--SA
Use C++ if you're developing games for desktop PC. As far as I know professional game developers doesn't like the possibility of a garbage collection cycle in midst of program execution (they don't like the unpredictability of it - They might be wrong and this attitude will probably change). The other reason is raw perfonce. In games performance actually matters and I believe (in spite of 'some benchmarks') that well written C++ is faster than well written C#.
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900