games in c++

getting started

Page 1 of 1

5 Replies - 1779 Views - Last Post: 09 March 2010 - 11:38 AM Rate Topic: -----

#1 anshulguleria90  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 06-March 10

games in c++

Posted 06 March 2010 - 09:56 AM

i am starting to create games in c++ language
could you guide me in choosing the e-book for this
do i've to create a game engine or i can try without using it or i can
use other game engines
Is This A Good Question/Topic? 0
  • +

Replies To: games in c++

#2 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 3873
  • View blog
  • Posts: 11,408
  • Joined: 18-April 07

Re: games in c++

Posted 06 March 2010 - 10:19 AM

If you are new to C++ altogether then I wouldn't really suggest a game. Unless of course it is something simple like tic tac toe. But since you are talking about game engines already, you are probably thinking of making the next Quake or something. So if you are somewhat new, I suggest you try some basic programs at first and build yourself up to a game level.

I suggest you actually find a great book and not some e-book online. You will want a book in your hands you can follow as you type code on your computer. Some great books are suggested over at GameDev.net at the link below...

Game development for Beginners

You are going to want to get familiar with things like DirectX or OpenGL etc and some of those books there can cover that material. Going to your local bookstore may also yield some newer books that teach the subject. I ALWAYS suggest that people sit down with a book, look through the chapters and read a bit to get a feel for the material. Pick one you like (one that preferably has examples and projects) and work your way through it.

If you have questions, you can of course ask here in the Game Programming forum (if game topic related) or in the C/C++ forum if it is about the actual language. Hope this helps! :)
Was This Post Helpful? 1
  • +
  • -

#3 besten  Icon User is offline

  • New D.I.C Head

Reputation: 12
  • View blog
  • Posts: 40
  • Joined: 03-March 10

Re: games in c++

Posted 06 March 2010 - 10:55 AM

Like Martyr said. Learn the C++ first. You won't learn it in console mode only, you will have to learn the Windows API and/or MFC or whatever GUI framework you choose.
After messing enough with OpenGL and/or DirectX and maybe you will have to have a look at 3rd party game engines like Ogre3D, and other Network and Audio engines (Please google!).
you can download the quake 1,2 and 3 source code, idSoftware released Quake source code. You can download it from here:
http://www.idsoftwar.../techdownloads/
( so cool, ha? )
but that's too early for you, frustration as a start doesn't make happy endings and end up with breaking the box :D.

Game Programming requires some math skills though, most importantly Trigonometry, matrices and vectors (for moving objects, Camera and other stuff).
Some Physics are required for the collision detection programming (like a bullet hit the target).
To start with OpenGL, I suggest the official Red book.
A good book for network programming for games is:
Programming multiplayer games for Andrew Mulholland and Teijo Hakala.
Windows game programming for dummies by Andre Lamothe is good but not enough.

Another advanced book: Special effects Game programming with DirectX by Andre Lamothe and Mason McCuskey is so cool for teaching the fire,rain, fog, projectiles and many other effects to make your game more realistic.

The book: Focus On 3D Models by Evan Pipho
will teach you how to program and load your 3D models and how to animate them and how to load other 3D models in specific file types.
You will have to learn how to model 3D characters, weapons, blabla unless someone will do it for you. It's pretty fun anyway.

These things may keep you busy for couple of years :D.
Good luck

This post has been edited by besten: 06 March 2010 - 10:57 AM

Was This Post Helpful? 1
  • +
  • -

#4 ishkabible  Icon User is offline

  • spelling expret
  • member icon





Reputation: 1526
  • View blog
  • Posts: 5,516
  • Joined: 03-August 09

Re: games in c++

Posted 06 March 2010 - 11:10 AM

i would also say try learning to make text based games with console apps. i think sun has a Java based camel game that you could make pretty easily in console in c++. also you might want to try some simpler 2D stuff like SDL and Flash. I'm just now learning 2D stuff in OpenGL and I've been trying to do what your doing for almost 2 years. i think theres also a an easy way to make 3D games using DarkBasic (google it). it's supposed to be an extremely basic language as the name would imply. i also get very tried of using the same language over and over again and i think that has slowed my progress down quit a bit so if you ever fill frustrated with a language try something new like Visual Basic. i think it has some 2D abiltys. and lastly google is your best friend, if you want to know something google it, if that fails try DIC the people here always help.
Was This Post Helpful? 1
  • +
  • -

#5 anshulguleria90  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 06-March 10

Re: games in c++

Posted 09 March 2010 - 10:35 AM

thank u very much
i will work as u suggested


i'm not new to c++ but new to games creating
and i asked about game engines because when i tried to check on the net
they all showed me through them
Was This Post Helpful? 0
  • +
  • -

#6 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 5672
  • View blog
  • Posts: 22,520
  • Joined: 23-August 08

Re: games in c++

Posted 09 March 2010 - 11:38 AM

Moving to Game Programming.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1