Lost Password?

Go Back   CodeCall Programming Forum > Software Development > C and C++

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

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.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-04-2007, 02:05 AM
feariel feariel is offline
Newbie
 
Join Date: Sep 2007
Posts: 12
Credits: 0
Rep Power: 0
feariel is on a distinguished road
Send a message via AIM to feariel
Default a question about game programming

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 12-04-2007, 02:36 AM
kenna kenna is offline
Learning Programmer
 
Join Date: Jul 2007
Posts: 30
Credits: 1
Rep Power: 5
kenna is on a distinguished road
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-04-2007, 03:15 AM
feariel feariel is offline
Newbie
 
Join Date: Sep 2007
Posts: 12
Credits: 0
Rep Power: 0
feariel is on a distinguished road
Send a message via AIM to feariel
Default thank you for the reply :)

i will think about that =)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-04-2007, 08:01 AM
kenna kenna is offline
Learning Programmer
 
Join Date: Jul 2007
Posts: 30
Credits: 1
Rep Power: 5
kenna is on a distinguished road
Default

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 ^_^
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-04-2007, 10:08 AM
systemist systemist is offline
Newbie
 
Join Date: Dec 2007
Posts: 1
Credits: 0
Rep Power: 0
systemist is on a distinguished road
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 12-04-2007, 11:14 AM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 2,385
Last Blog:
wxWidgets is NOT code ...
Credits: 662
Rep Power: 27
WingedPanther is a jewel in the roughWingedPanther is a jewel in the roughWingedPanther is a jewel in the roughWingedPanther is a jewel in the rough
Default

A large number of popular games are coded in C++. Blizzard does their programming in C++, for example. You can dive directly into C++ as your main language. The main difference between "programming" and "game programming" is the focus on user interface, especially graphics and sound.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 12-04-2007, 11:29 AM
feariel feariel is offline
Newbie
 
Join Date: Sep 2007
Posts: 12
Credits: 0
Rep Power: 0
feariel is on a distinguished road
Send a message via AIM to feariel
Default thank you again

thank you for all of the replies.

you have all given me a direction which surely will come handy

thanks again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 12-05-2007, 07:45 AM
persian_GG persian_GG is offline
Newbie
 
Join Date: Dec 2007
Location: IRAN
Posts: 3
Credits: 0
Rep Power: 0
persian_GG is on a distinguished road
Send a message via Yahoo to persian_GG
Default a lot of time

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 12-05-2007, 05:42 PM
G_Morgan G_Morgan is offline
Guru
 
Join Date: Oct 2007
Age: 24
Posts: 429
Credits: 29
Rep Power: 8
G_Morgan has a spectacular aura aboutG_Morgan has a spectacular aura aboutG_Morgan has a spectacular aura about
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -5. The time now is 09:10 PM.

Contest Stats

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

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 79%

Ads