Author Topic: Video game programming with C++  (Read 5783 times)

0 Members and 1 Guest are viewing this topic.

Offline josephmarin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 186
  • Rating: +0/-0
  • Shiny, lets be bad guys
    • View Profile
Video game programming with C++
« on: March 09, 2009, 04:12:01 am »
Can anyone point me in the right place to get started with this? DirectX, OpenGL, or any other alternatives welcome.

I don't have any definate plans for this, but I would like to have my options open. I figure it'd be best to start off with 2d and move on up to 3d and stuff. Any way, any links or maybe even a mentor of sorts would be greatly appreciated. Thanks!
Burn the land, boil the sea, you can't take the sky from me

metagross111

  • Guest
Re: Video game programming with C++
« Reply #1 on: March 09, 2009, 03:06:34 pm »
Your signature is wr0ng. i suggest immediate correction now.

Offline simplethinker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 695
  • Rating: +16/-5
  • snjwffl
    • View Profile
Re: Video game programming with C++
« Reply #2 on: March 09, 2009, 03:18:08 pm »
I haven't looked through everything there, but this site looks like a good resource (tutorials plus tons of links to other sites).  Also, a lot of the sites I found mentioned Allegro is good for C/C++ game making.  (note that I really don't know anything about making games in C++ and these recommendations are just based on looking around the site)

metagross111:  Please try and stay on topic.

josephmarin: I love your sig :D
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true." -- Professor Robert Silensky



Chip's Challenge: ħ%

metagross111

  • Guest
Re: Video game programming with C++
« Reply #3 on: March 09, 2009, 03:36:16 pm »
his sig was in his topic post, therefore, on-topic.

besides, if you're gonna quote something, it's polite to represent it correctly

Offline simplethinker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 695
  • Rating: +16/-5
  • snjwffl
    • View Profile
Re: Video game programming with C++
« Reply #4 on: March 09, 2009, 03:41:25 pm »
his sig was in his topic post, therefore, on-topic.

besides, if you're gonna quote something, it's polite to represent it correctly
Oh, you were talking about the typo ("focuaing " should be "focusing").  Sorry, I thought you were commenting that the sig itself was wrong.  But it's still off-topic.
« Last Edit: March 09, 2009, 03:45:30 pm by simplethinker »
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true." -- Professor Robert Silensky



Chip's Challenge: ħ%

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Video game programming with C++
« Reply #5 on: March 09, 2009, 03:44:09 pm »
Metagross111, stop being an ass lol. :P . This topic was about Video game programming in C++ anyway (altough the sig theme kinda fits programming a bit, for some reasons). Just because his sig is below his post doesn't mean it has to be discussed in the topic. Some people have signatures disabled in their profile options so they aren't gonna follow the discussion. Plus, his sig is much better than what Damakaru/Randomist had on the old board when he joined (something very seizure inducing)
« Last Edit: March 09, 2009, 04:49:04 pm by DJ Omnimaga »

metagross111

  • Guest
Re: Video game programming with C++
« Reply #6 on: March 09, 2009, 05:08:26 pm »
"Real programmers use butterflies. They open their hands and let the delicate wings flap once. The disturbance drifts upwards, changing the flow of eddy currents in the upper atmosphere. These cause momentary pockets of higher-pressure air to form, which act as lenses to deflect incoming cosmic rays, focusing them to strike the drive platter and flip the desired bit."

^^ here is teh correct quote, word-for-word

as for C++, I'm still a student of it, lol. sorry I cannot help :)

Offline josephmarin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 186
  • Rating: +0/-0
  • Shiny, lets be bad guys
    • View Profile
Re: Video game programming with C++
« Reply #7 on: March 12, 2009, 07:47:44 pm »
hey you know what, i did my sig at 3 am and i hadn't slept the night before lol. thanks for the links, i'll check them out when i get computer time.
Burn the land, boil the sea, you can't take the sky from me

Offline bfr

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 819
  • Rating: +4/-0
    • View Profile
    • bfr's website
Re: Video game programming with C++
« Reply #8 on: March 12, 2009, 08:17:00 pm »
I haven't done any C++ game programming in a while, but when I did, I mostly used SDL for graphics and stuff.  It is meant for 2-D graphics, but it works well with OpenGL if you want 3-D graphics later on.

There are also some libraries that work with SDL to extend its features, such as SDL_mixer to extend its audio capabilities, SDL_image for loading more types of images, and a few others here (mainly the ones prefixed with "SDL_").

I remember using mostly this and some other page/document that I forgot (it may have been something bundled with the SDL download) to help me learn how to use SDL.  You can visit here, here, and here for more tutorials and documentation.

I'm also pretty sure that both OpenGL and SDL work with C and C++.

EDIT: And also, this gives a decent introduction on using SDL.

Lastly, I recommend checking out Code::Blocks to use for your IDE.  It has built-in templates to help you use libraries like SDL.  You should probably use the latest nightly build here, as the official release hasn't been updated in over a year, I think.  Be sure to read How to use a nightly build first.
« Last Edit: March 12, 2009, 08:24:32 pm by bfr »

Offline josephmarin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 186
  • Rating: +0/-0
  • Shiny, lets be bad guys
    • View Profile
Re: Video game programming with C++
« Reply #9 on: March 13, 2009, 01:48:22 pm »
Oh, wow, thanks! Yeah, I picked up Code::blocks a couple weeks ago googling for compilers.

Regrettably I haven't a lot of online time, but HOURS of offline time, so I should be posting some projects and any questions I can't figure out whenever i can. Probably from my phone. lol.

=D Thanks a lot BFR and simplethinker ^_^.
Burn the land, boil the sea, you can't take the sky from me