New to gameprogramming but very exited to begin

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
Samfer
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 3
Joined: Thu Jun 16, 2011 9:45 pm

New to gameprogramming but very exited to begin

Post by Samfer »

Hello, my name is Sam. Im very interested in computer science and i have some programming experience and now i wish to begin learning more about game programming. I stumbled upon GyroVorbis's channel on youtube and i became motivated to begin learning game programming. I have a couple of questions like, where do i start? where did you begin learning? what great books/material answered your questions and gave you better insight into game programming?

Would really be nice if i could get some responses on what i should follow up on or read.
Cheers
Aleios
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 78
Joined: Mon Feb 21, 2011 2:55 am
Current Project: Aleios Engine
Favorite Gaming Platforms: PC, Dreamcast
Programming Language of Choice: C++
Location: Melbourne, Australia

Re: New to gameprogramming but very exited to begin

Post by Aleios »

Sounds cool, but what language are you planning to use?

I started my true Game Programming Quest when i started learning C++. Sounds like a stupid idea but i already knew the Syntax, how pointers work, etc; I started with SDL and eventually decided to start using OpenGL as my graphics API and OpenAL as my Audio Library (along with libvorbis/libogg).

If you are going to use C++ i would recommend:
SFML or SDL

SFML is considered an updated SDL, but it's C++ object oriented design. There is nothing wrong with that, but i just prefer a procedural C library (SDL).

if C#, i recommend looking into the XNA framework or i think there is something named Tao's framework or something.

Any other language and i wouldn't have a clue as i don't program games outside C++.

and btw, how experienced would you rate yourself at the language? i ask this because games programming is somewhat unique to other uses.

Have Fun :)
Image
User avatar
bnpph
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 75
Joined: Thu Mar 10, 2011 12:30 pm

Re: New to gameprogramming but very exited to begin

Post by bnpph »

Star with C.

Move onto C++ when you feel comfortable.
User avatar
EccentricDuck
Chaos Rift Junior
Chaos Rift Junior
Posts: 305
Joined: Sun Feb 21, 2010 11:18 pm
Current Project: Isometric "2.5D" Airship Game
Favorite Gaming Platforms: PS2, SNES, GBA, PC
Programming Language of Choice: C#, Python, JScript
Location: Edmonton, Alberta

Re: New to gameprogramming but very exited to begin

Post by EccentricDuck »

Well, the next step in learning should really depend upon what you want to create and what you already know. If you have some programming experience then it's not a bad idea to start out with the language you already know. Using a language you already know will allow you to focus on game programming topics like rendering, game structure, collision detection, AI, etc; rather than focusing too much on the syntax or usage of the language.

The only exception would be if you want to make something for a platform that won't work with your language of choice, or you have some other language that you're more set on learning than actual game programming (at least for the first few months with it).

So what languages do you know?

Also, I just wrote my story about how I got into programming (if you're curious) in the "When did your journey with programming start and why?" thread in the General/Off-Topic forum.

Welcome to the forums Sam.
Samfer
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 3
Joined: Thu Jun 16, 2011 9:45 pm

Re: New to gameprogramming but very exited to begin

Post by Samfer »

Aleios wrote:Sounds cool, but what language are you planning to use?

I started my true Game Programming Quest when i started learning C++. Sounds like a stupid idea but i already knew the Syntax, how pointers work, etc; I started with SDL and eventually decided to start using OpenGL as my graphics API and OpenAL as my Audio Library (along with libvorbis/libogg).

If you are going to use C++ i would recommend:
SFML or SDL

SFML is considered an updated SDL, but it's C++ object oriented design. There is nothing wrong with that, but i just prefer a procedural C library (SDL).

if C#, i recommend looking into the XNA framework or i think there is something named Tao's framework or something.

Any other language and i wouldn't have a clue as i don't program games outside C++.

and btw, how experienced would you rate yourself at the language? i ask this because games programming is somewhat unique to other uses.

Have Fun :)

Im doing most of my programming in C and C++ but mostly C. Ive heard of SDL and it seems quite nice! what's you're exprience with it? I feel that i havnt grasped all the aspects of the language quite yet but im quite sure of the syntax and pointers, structures etc.
User avatar
Ginto8
ES Beta Backer
ES Beta Backer
Posts: 1064
Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java

Re: New to gameprogramming but very exited to begin

Post by Ginto8 »

SDL is a nice library, but it is also a little restrictive in that you can only have 1 window at a time, and its normal drawing, compared to SFML (which is based on OpenGL), runs about as fast as an elephant with a broken knee. It does the job, but I can't say it's great.
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
Aleios
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 78
Joined: Mon Feb 21, 2011 2:55 am
Current Project: Aleios Engine
Favorite Gaming Platforms: PC, Dreamcast
Programming Language of Choice: C++
Location: Melbourne, Australia

Re: New to gameprogramming but very exited to begin

Post by Aleios »

SDL is a nice library, but it is also a little restrictive in that you can only have 1 window at a time, and its normal drawing, compared to SFML (which is based on OpenGL), runs about as fast as an elephant with a broken knee. It does the job, but I can't say it's great.
True you can only have 1 window at a time, but how many games really use 2 windows? And don't forget, you can initialize SDL with an OpenGL context. But yea, i have to admit, if i didn't find SDL first, I would probably be using SFML right now.

My advice would be to look at the structure of both of them and decide which one seems like it be the better option.
Image
User avatar
GroundUpEngine
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 835
Joined: Sun Nov 08, 2009 2:01 pm
Current Project: mixture
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: UK

Re: New to gameprogramming but very exited to begin

Post by GroundUpEngine »

If your mostly using C then SDL would be a lot easier to learn but if your planning to learn more C++, SFML is an awesome object oriented alternative! ;)
User avatar
lotios611
Chaos Rift Regular
Chaos Rift Regular
Posts: 160
Joined: Sun Jun 14, 2009 12:05 pm
Current Project: Game engine for the PC, PSP, and maybe more.
Favorite Gaming Platforms: Gameboy Micro
Programming Language of Choice: C++

Re: New to gameprogramming but very exited to begin

Post by lotios611 »

Ginto8 wrote:SDL is a nice library, but it is also a little restrictive in that you can only have 1 window at a time, and its normal drawing, compared to SFML (which is based on OpenGL), runs about as fast as an elephant with a broken knee. It does the job, but I can't say it's great.
In SDL 1.3, pretty much all of the reasons why you would use SFML instead of SDL go away. There is support for multiple windows, and the rendering is hardware accelerated. Also, I much prefer SDL to SFML, because I feel that I have much more control over how things are structured in the game.

Edit: Also, you can use SFML in C, you just have to use CSFML, which has a fairly nice API. I prefer SDL to CSFML though, probably because it was the first API I used.
"Why geeks like computers: unzip, strip, touch, finger, grep, mount, fsck, more, yes, fsck, fsck, fsck, umount, sleep." - Unknown
User avatar
GroundUpEngine
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 835
Joined: Sun Nov 08, 2009 2:01 pm
Current Project: mixture
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: UK

Re: New to gameprogramming but very exited to begin

Post by GroundUpEngine »

lotios611 wrote: Edit: Also, you can use SFML in C, you just have to use CSFML, which has a fairly nice API. I prefer SDL to CSFML though, probably because it was the first API I used.
Ops forgot about that, good point!
User avatar
Ginto8
ES Beta Backer
ES Beta Backer
Posts: 1064
Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java

Re: New to gameprogramming but very exited to begin

Post by Ginto8 »

lotios611 wrote:
Ginto8 wrote:SDL is a nice library, but it is also a little restrictive in that you can only have 1 window at a time, and its normal drawing, compared to SFML (which is based on OpenGL), runs about as fast as an elephant with a broken knee. It does the job, but I can't say it's great.
In SDL 1.3, pretty much all of the reasons why you would use SFML instead of SDL go away. There is support for multiple windows, and the rendering is hardware accelerated. Also, I much prefer SDL to SFML, because I feel that I have much more control over how things are structured in the game.

Edit: Also, you can use SFML in C, you just have to use CSFML, which has a fairly nice API. I prefer SDL to CSFML though, probably because it was the first API I used.
I just took a look at SDL 1.3, and... wow. SDL used to be an over-simplified, and somewhat restrictive, library, but now (from what I've seen in my cursory look), it's at least as powerful as SFML. I am truly impressed :worship:
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
Samfer
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 3
Joined: Thu Jun 16, 2011 9:45 pm

Re: New to gameprogramming but very exited to begin

Post by Samfer »

Sure i do most of my programming in C but i will eventually learn c++ aswell, to get into object oriented programming! I was thinking of just starting out very easy and create something like pong. I watched alot of gyrovorbis videos and i agree that the project at hand has to be equal to what you can perform! having to high expectations really can ruin things. It has happened before, like for many others out there.
midix
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 16
Joined: Sat Sep 10, 2011 1:02 pm

Re: New to gameprogramming but very exited to begin

Post by midix »

My favorite book recently is "Game coding complete, 3rd edition" with source code available to download. Really great book, it made me to rethink so many things and showed me how little I knew about game engine development before reading that book :mrgreen: .
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: New to gameprogramming but very exited to begin

Post by Falco Girgis »

Moving to programming...
Post Reply