|
||||||
| C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
is game programming different from other forms of programming?
i would like to learn how to make a certain game. and my question is should i learn c++ just straight or should i learn specific programming inclined towards game programming? thank you |
| Sponsored Links |
|
|
|
|||
|
I am by no means an expert, and you should probably just take my reply as that of the ramblings of a hermit. I have mostly been working with design and theory, rather than actual programming, so I don't have much to say.
I would say that game programming is different since you need to be well versed in several fields of programming, such as general, mathematics, graphics, DSP, etc. Game programming is also (not always, but often) a very large project, which means the source will be quite large as well, and will need to be well structured, in many ways. I'm sure there are plenty of users who would gladly crucify me for saying this, but I would say start with C (TCC TCC : Tiny C Compiler or GCC MinGW - Home {windows}, GCC, the GNU Compiler Collection - GNU Project - Free Software Foundation (FSF) {unix, linux, etc.}). Throw in SDL (Simple DirectMedia Layer) and you have a pretty good start. There are plenty of OO trolls (no offense) that would frown upon using C, but I say f**k them. Later on if you don't feel that C is right for you, you can always move on to learn the OO model of C++, as C++ is basically nothing more than C with OO features. If you want something simpler, and aren't too concerned about optimised speed (maybe you're going to work with simpler games), you could use Lua (The Programming Language Lua), which is a lightweight and awesome embedded language -- although it can be used stand-alone as well -- that has bindings to both SDL and OpenGL and many more libraries. If you're not too concerned about portability (i.e. windows/directx only) you could use DarkBasic (DarkBASIC - Home). Euphoria (The Euphoria Programming Language) is another easy-to-use programming language (similar to basic) that might be suited for smaller projects. If I were to pick one, I'd say C, hands down, 6-0. Learning C will give you an excellent foundation in programming. After C I'd pick Pascal (Free Pascal - Advanced open source Pascal compiler for Pascal and Object Pascal - Home Page). For smaller projects either Lua or Euphoria. However, for hardcore, well-designed, top-notch projects, I'd always go for C, any day, any time. Might not be as easy to use as Lua or Euphoria, and might not have all the fancy-s**t features of C++, but it still rocks my socks! ^o^ Last edited by kenna; 12-04-2007 at 02:39 AM. |
|
|||
|
A much better place to ask about game programming/development is devmaster (DevMaster.net - Your source for game development), if you haven't already bookmarked that site, I suggest you do so now ^_^
|
|
|||
|
hey there.
games are coded in the same languages as anything else. i've done a good bit of game programming over the years. i would definitely suggest C++. the main reason - most commercial games' source packs are in C++ so if you want to get into some modding too (highly recommended) you will be ready to go. modding is a great way to learn - have a look at developer dot valvesoftware dotcom. other than that, IMO, C++ is more intuitive and better than C because it is OO, thus ideal for games. but yeah... go visit the other forum ![]() |
| Sponsored Links |
|
|
|
|||
|
Game Programming is a big work that need several
people to make it . As a programmer you need Math ! Yes Math is the base of game programming and second LOVE. if you had these then you must learn a powerfull language such a C++ and use powerfull compiler such MSVC. then must use a game library so i recommended DirectX for programming Games in PC. ![]() |
|
|||
|
Game programming is one of the more difficult tasks IMHO. Graphics, physics, performance, AI and UI are all among the most testing things in the field.
I say C++ is better suited than C but I'd use it in a procedural way with OOP for the things that are suited to it. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mysql/php backbone implementation question for an online cash/gambling game | ISee | PHP Forum | 0 | 10-30-2007 08:53 AM |
| XBox 360 XNA Game Programming | Jordan | C# Programming | 14 | 09-29-2006 05:10 PM |
| Game Programming | Lop | Software Development Tools | 8 | 07-21-2006 04:22 PM |
| Xav | ........ | 1024.41 |
| MeTh0Dz|Reb0rn | ........ | 974.08 |
| morefood2001 | ........ | 850.04 |
| John | ........ | 841.93 |
| WingedPanther | ........ | 661.52 |
| marwex89 | ........ | 575.59 |
| Brandon W | ........ | 447.33 |
| chili5 | ........ | 292.12 |
| orjan | ........ | 187.41 |
| Steve.L | ........ | 180.25 |
Goal: 100,000 Posts
Complete: 79%