Question:
Good language for game programming?
1970-01-01 00:00:00 UTC
Good language for game programming?
Seven answers:
maito
2010-12-21 08:02:38 UTC
you can program games in most languages even PHP.



Most large games are in C++.



Find a gaming framework in what ever language you want and go through tutorials.
2016-02-29 08:45:37 UTC
The most popoular high level languages in the industry are C and C++ The games you mention are most likely written in a combination of the two with a healthy amount of platform specific assembly language thrown in particularly in the case of console versions. These games will also have a significant amount of code written for the graphics hardware that will either be in a high level GPU programming language such as HLSL or GLSL or (more likely) in assembly language both generic to the shader model used and specific to take advantage of the platform - particularly in the case of console graphics hardware.
green meklar
2010-12-21 11:03:54 UTC
It depends how many features you want. Javascript/HTML can be used to create simple turn-based games (and even real-time games, but it is not recommended), but has a number of severe limitations (for instance, playing sounds is highly difficult). Your best bet is probably Java, it is tougher to use but gives you more power with the right libraries. C++ is the standard language for writing game applications, but for a 2D turn-based game, its additional power really isn't necessary and a beginner would rather not have to deal with its nuances (memory management and whatnot).



That said, I would suggest that if you have never actually done programming, your first games will probably be limited to a text interface. Graphics are a little tougher and usually you want some experience with the language before taking that step.
2010-12-21 08:01:02 UTC
JAVA, you can also create mobile apps/games I believe.
?
2010-12-21 08:00:23 UTC
try JAVA has more flexibilty and graphics adaptability
2010-12-21 08:15:16 UTC
If you want to write a program you need to learn programming. Start with http://www-old.oberon.ethz.ch/WirthPubl/AD.pdf



You can write a strategy game in any language. (The old Star Trek program was written in a pretty primitive dialect of BASIC. All text, no graphics at all.)
Tdz
2010-12-21 08:08:43 UTC
Nothing's hopeless as long as you have the passion for your vision! (We both know I am right!)



Now my suggestion is Flash/Actionscript since it's simple, easy to add visual, 99% compatible on all machines and YES you can create executable files (PC or MAC) using Zinc or other compilers. Of course this solution is based on your situation and there will be limitations:

-Visual quality can be great but not extremely dynamic (4x games are usually not too demanding on the video card and can be done entirely in 2D while maintaining excellent visual flair)...you won't see any good looking first person shooter in flash!!

-Forget about 3D...it's 3D paper-ish, it works well but it's hard to implement (for a 4x game) and it kills the creativity. I mean, compare Starcraft with Starcraft 2...it almost looks the same...but it needs a machine 20 times more powerfull!! Sure you get bumb-mapped creep with the Zerg and all that eye candy...but the game itself? Almost identical!

-Path-finding will surely be the hardest thing to do here since you need some basic AI programming knowledge to do that...but it will be true of any programming language. The thing is, with Flash you can't overload the machine with complex operations every frame (30 times a second for example) or it will lag like hell...so optimization is a must.



Ok the strong points:

-Easy to learn, lots of tutorials online, ECMA script standard

-Easy to deploy...needs only a html page or can even play on it own!

-Easy to develop visual AND animated it.

-Almost everything can be done in the same software including design (vectorial based)

-Complex enough to work with thousand of classes, script pages and resource files.

-Good debugging functions as this is a first for you, you will need it!





Check out tutorials and example of games...there are a lot and it might help you decide. Hope this helps!


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...