Coder in need of advice

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
User avatar
zodiac976
Chaos Rift Regular
Chaos Rift Regular
Posts: 156
Joined: Thu Jun 18, 2009 10:03 am
Current Project: Booklet & Text RPG
Favorite Gaming Platforms: PC, PS3, PSP
Programming Language of Choice: C++
Location: AL
Contact:

Coder in need of advice

Post by zodiac976 »

Hello everyone! I am 7 months into C++ programming and became highly interested
in it after attending C++ classes in college and I am continuing to program.

I am looking for some advice on, if I should keep programming in console applications or
switch to windows applications and also if i should start learning openGL, as my main
focus is game programming.

Thanks in advance for any advice.
User avatar
thejahooli
Chaos Rift Junior
Chaos Rift Junior
Posts: 265
Joined: Fri Feb 20, 2009 7:45 pm
Location: London, England

Re: Coder in need of advice

Post by thejahooli »

Definately switch out of console once you know enough c++, which it sounds like you do.
Also I would would start with 2D using SDL or Allegro before moving onto 3D rendering with OpenGL as 2D games can give you a lot of knowledge which can be used for 3D games without the extra, time consuming process of doing it in 3D.

And welcome to the forums.
Last edited by thejahooli on Thu Jun 18, 2009 12:57 pm, edited 1 time in total.
I'll make your software hardware.
User avatar
zodiac976
Chaos Rift Regular
Chaos Rift Regular
Posts: 156
Joined: Thu Jun 18, 2009 10:03 am
Current Project: Booklet & Text RPG
Favorite Gaming Platforms: PC, PS3, PSP
Programming Language of Choice: C++
Location: AL
Contact:

Re: Coder in need of advice

Post by zodiac976 »

Thanks, I will check out SDL and/or Allegro and eventually move onto windows applications.

I have another question about windows applications, if it's possible to make programs similiar
to console applications?

For example instead of waiting on a user to input an integer or character; wait on the user for
mouse clicks or certain keys pressed but still maintain a similar text menu look in a console
application.
User avatar
thejahooli
Chaos Rift Junior
Chaos Rift Junior
Posts: 265
Joined: Fri Feb 20, 2009 7:45 pm
Location: London, England

Re: Coder in need of advice

Post by thejahooli »

Not sure, never tried it myself.
I'm sure there is a way though but it will probably be more complicated than using the console by itself.
I'll make your software hardware.
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: Coder in need of advice

Post by avansc »

im speaking under correction here. but the winapi has callbacks. so you can execute code depending on events.
just do yourself a favor and stick with something like widgets or some premade library. you do not want to mess with the winapi if you dont have to.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
User avatar
zodiac976
Chaos Rift Regular
Chaos Rift Regular
Posts: 156
Joined: Thu Jun 18, 2009 10:03 am
Current Project: Booklet & Text RPG
Favorite Gaming Platforms: PC, PS3, PSP
Programming Language of Choice: C++
Location: AL
Contact:

Re: Coder in need of advice

Post by zodiac976 »

Thanks, I appreciate all the advice, but can you explain widgets? I have messed around
some with the win32 API and it is fairly difficult for me but not impossible to learn.

I am so used to console projects right now, making text menu programs and eventually
a text-based RPG. I am probably rushing it too fast but that is just me.
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: Coder in need of advice

Post by eatcomics »

zodiac976 wrote:Thanks, I will check out SDL and/or Allegro and eventually move onto windows applications.

I have another question about windows applications, if it's possible to make programs similiar
to console applications?

For example instead of waiting on a user to input an integer or character; wait on the user for
mouse clicks or certain keys pressed but still maintain a similar text menu look in a console
application.
there is but I'm not sure how... I'm sure you can achieve a similar look in SDL, but your box at the top with the buttons for minimizing and closing wouldn't look like the command line one...
Image
User avatar
zodiac976
Chaos Rift Regular
Chaos Rift Regular
Posts: 156
Joined: Thu Jun 18, 2009 10:03 am
Current Project: Booklet & Text RPG
Favorite Gaming Platforms: PC, PS3, PSP
Programming Language of Choice: C++
Location: AL
Contact:

Re: Coder in need of advice

Post by zodiac976 »

I guess I will stick with console applications a little longer.

I haven't messed with SDL yet but I have messed with darkGDK and openGL.
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: Coder in need of advice

Post by Ginto8 »

zodiac976 wrote:I guess I will stick with console applications a little longer.

I haven't messed with SDL yet but I have messed with darkGDK and openGL.
SDL is a very good library, as is OpenGL. Both can do 2D, though OpenGL can do it more flexibly, as well as do 3D. Personally, I use SDL for window management and OpenGL for graphics, though I have used SDL for graphics in the past. I would highly recommend SDL or just about anything else over winAPI, because, well, none of the code you write would work properly for me (I'm on Linux ;) ), and because WinAPI is really difficult to use. However, it is your choice as to what API you use, so that's my $.02 :)
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.
User avatar
zodiac976
Chaos Rift Regular
Chaos Rift Regular
Posts: 156
Joined: Thu Jun 18, 2009 10:03 am
Current Project: Booklet & Text RPG
Favorite Gaming Platforms: PC, PS3, PSP
Programming Language of Choice: C++
Location: AL
Contact:

Re: Coder in need of advice

Post by zodiac976 »

I really should take a look at SDL.
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Coder in need of advice

Post by dandymcgee »

zodiac976 wrote:I really should take a look at SDL.
Try it out. If all else fails go back to the console until you can grasp a few more concepts.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
thejahooli
Chaos Rift Junior
Chaos Rift Junior
Posts: 265
Joined: Fri Feb 20, 2009 7:45 pm
Location: London, England

Re: Coder in need of advice

Post by thejahooli »

dandymcgee wrote:
zodiac976 wrote:I really should take a look at SDL.
Try it out. If all else fails go back to the console until you can grasp a few more concepts.
Thats what I did. I wasn't sure whether I should start SDL so I had a go at it and found it fine. There is no point in sticking with console if you know all the C++ that you could get out of it and even if you haven't it is still good and motivating to see something resembling a game.
I'll make your software hardware.
Post Reply