C++ and OpenGL

Started by
12 comments, last by Saruman 11 years, 7 months ago
Hi,

I would like to start programming games,
I've been reading gamedev forums for a few days now and I have a few questions.

Is starting right from the beginning with an engine is the proper way ?
Do you have some books (or sites) to recommend about C++ and/or OpenGL for game programming ?
(any other book that might be useful to beginners are welcome too)

I'm looking to create something with C++ and OpenGL (due to it's portability).
I already have some programming skills with C/C++ and Java, I did desktop application programming and a bit of Minecraft modding but i don't have any game-specific programming skills.

I am looking to do some basic 2D RTS game (loading a map, handling units, moving, attack), I know that for the moment i don't have enough skills to start such a project and i'm aware of the amount of work it requires so I hope you'll enlighten me to get starting smile.png

thank you.
[size=1](I hope my english was understandable)
Advertisement
If you want to really make a game, start with an existing engine. If your goal is to play with OpenGL and C++ and probably never ship a real game (unless it's a really simple one), then go that way. That's my advice.
thank you Faelenor,
I don't plan to release a commercial game, it's for my own purpose.
Not even just a commercial game... but finishing any type of game at all. I strongly recommend using an existing engine to people when they are more interested in the game design and focusing on the gameplay, because the majority of people that decide to start from scratch never even come close to having something that resembles a working game.
If you want to make games, starting with C++ and OpenGL is possibly the worst combination. It's akin to wanting to learn to fly starting out with a bunch of scrap metal and a four stroke engine. I'm not familiar with RTS engines so cannot recommend any (although a google search yields results) but regardless, if you want to go down the programming route you can sack off any ideas of starting with an RTS and and instead start off with something very simple like tic-tac-toe or a text-based hangman game. Keep it simple, keep it realistic. Even using an engine would be jumping the gun at this stage.
Yes, by "ship a real game", I actually meant "finish a game".
Even using an engine would be jumping the gun at this stage.


I don't agree with this. Using an engine, you can concentrate yourself on the actual gameplay instead of boilerplate code, low level APIs and stuff like that.

[quote name='GeneralQuery' timestamp='1348690961' post='4984095']Even using an engine would be jumping the gun at this stage.


I don't agree with this. Using an engine, you can concentrate yourself on the actual gameplay instead of boilerplate code, low level APIs and stuff like that.
[/quote]
My point is that starting with no programming experience, an engine is certainly not a good place to start. Learn to program first, it's not like there's any Unity-style WYSIWYG engines for RTSs that I'm aware of.
Well, I don't know what you've read, but if your concern is portability, you're making the wrong choice ;) But, OpenGL is still good, so -- The project you're trying to accomplish, Hard - Coded, Is not really feasible for someone who doesn't even know the whole language! You should do these things in this order (Or don't do them in this order, you can experiment ;)
1. Solidify your knowledge of C++ -- Learn the language First! If you don't know the actual language well, coding a game is almost impossible!
2. Try to make some games like tic tac toe, checkers, etc. in the console and try coding some object oriented simulations.
3. Learn a 2d library like SFML or SDL (I recommend and constantly use SFML, but it's your choice).
4. Make some 2d games. Start with pong or breakout, and move on to things like Tetris with advanced collision detection and physics.
5. Try OpenGl (But I warn you, it'll take a month to make a box, and you should probably go with some prebuilt engines at first.)
6. Continue on the path of game development!

I'm a game programmer and computer science ninja !

Here's my 2D RPG-Ish Platformer Programmed in Python + Pygame, with a Custom Level Editor and Rendering System!

Here's my Custom IDE / Debugger Programmed in Pure Python and Designed from the Ground Up for Programming Education!

Want to ask about Python, Flask, wxPython, Pygame, C++, HTML5, CSS3, Javascript, jQuery, C++, Vimscript, SFML 1.6 / 2.0, or anything else? Recruiting for a game development team and need a passionate programmer? Just want to talk about programming? Email me here:

hobohm.business@gmail.com

or Personal-Message me on here !

Just use Unity3D. You can achieve quite alot with it by just knowing some basic programming, it's really quick results and highly portable (android, iOs, windows, mac, etc)

Of course you can make any kind of game, such as an RTS, with it.

This topic is closed to new replies.

Advertisement