Jump to content

  • Log In with Google      Sign In   
  • Create Account


C++ and OpenGL


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
13 replies to this topic

#1 Misa   Members   -  Reputation: 104

Like
0Likes
Like

Posted 26 September 2012 - 12:25 PM

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 Posted Image

thank you.
(I hope my english was understandable)

Edited by Misa, 26 September 2012 - 12:29 PM.


Sponsor:

#2 Faelenor   Members   -  Reputation: 396

Like
1Likes
Like

Posted 26 September 2012 - 12:29 PM

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.

#3 Misa   Members   -  Reputation: 104

Like
0Likes
Like

Posted 26 September 2012 - 01:36 PM

thank you Faelenor,
I don't plan to release a commercial game, it's for my own purpose.

#4 joew   Crossbones+   -  Reputation: 3648

Like
2Likes
Like

Posted 26 September 2012 - 02:11 PM

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.

#5 GeneralQuery   Crossbones+   -  Reputation: 1263

Like
0Likes
Like

Posted 26 September 2012 - 02:22 PM

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.

Edited by GeneralQuery, 26 September 2012 - 02:23 PM.


#6 Faelenor   Members   -  Reputation: 396

Like
0Likes
Like

Posted 26 September 2012 - 02:26 PM

Yes, by "ship a real game", I actually meant "finish a game".

#7 Faelenor   Members   -  Reputation: 396

Like
0Likes
Like

Posted 26 September 2012 - 02:32 PM

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.

#8 GeneralQuery   Crossbones+   -  Reputation: 1263

Like
0Likes
Like

Posted 26 September 2012 - 02:36 PM

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.

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.

#9 superman3275   Crossbones+   -  Reputation: 2011

Like
0Likes
Like

Posted 26 September 2012 - 07:52 PM

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!

Edited by superman3275, 26 September 2012 - 07:52 PM.

I'm a game programmer and computer science ninja ph34r.png!

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 smile.png!


#10 KaiserJohan   Members   -  Reputation: 1115

Like
0Likes
Like

Posted 27 September 2012 - 12:21 AM

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.

#11 Misa   Members   -  Reputation: 104

Like
0Likes
Like

Posted 27 September 2012 - 01:17 AM

Ok, thank you for your answers.

superman3272:
I know OpenGL isn't easy, i saw some basic examples (like boxes) and i didn't understood anything :D so I guess I should start with an engine based on top of it.
about the portability, is the choosen langage a problem ? i thought if libraries where multiplatform it would be enough. Am I wrong?

#12 joew   Crossbones+   -  Reputation: 3648

Like
0Likes
Like

Posted 27 September 2012 - 05:09 PM

it's not like there's any Unity-style WYSIWYG engines for RTSs that I'm aware of.

I built a fully featured RTS prototype in pre-production using Unity and it took a little over a week, so I don't see why you would need something more specialized.

#13 GeneralQuery   Crossbones+   -  Reputation: 1263

Like
0Likes
Like

Posted 27 September 2012 - 05:11 PM


it's not like there's any Unity-style WYSIWYG engines for RTSs that I'm aware of.

I built a fully featured RTS prototype in pre-production using Unity and it took a little over a week, so I don't see why you would need something more specialized.

Then he's in luck. WYSIWYG engines are perfect for beginners, API-style engines... not so.

#14 joew   Crossbones+   -  Reputation: 3648

Like
0Likes
Like

Posted 27 September 2012 - 05:20 PM

WYSIWYG engines are perfect for beginners, API-style engines... not so.

I'm wondering what the difference is as I've never heard these distinctions? I've worked with many different commercial engines professionally and they basically consist of a WYSIWYG level design tool (along with various other asset tools/conditioners) and then a scripting language (or some type of visual scripting tool like Kismet or C4 incorporates) and sometimes customizations in C++ either as a plugin or core to the build. The vast majority of games are built using a technology like this.

Mind you I'm not arguing or saying there isn't such a distinction, it's just that I've never heard of it.

Edited by Saruman, 27 September 2012 - 05:21 PM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS