Advertisement

How much time will it take to make a game in SDL as a single persone while learning?

Started by February 11, 2018 06:48 PM
13 comments, last by Rutin 6 years, 4 months ago
On 2/14/2018 at 10:28 AM, Rutin said:

@swiftcoder provided a great answer.

I personally got into engine and tool programming on top of game programming because I was extremely interested in learning how it all worked, but this came at a large cost in time. I would recommend that you stick to pre-made engines for now If you're not really into making all the components to the engine, tools, and then a game on top of everything else.

Going into C# from C++ really isn't an issue (even if you're not far enough in C++ it wont matter), and using Unity along the way will really motivate you because you can achieve results a lot faster. The Unity community has a ton of support as well.

If you decide to take on SDL and openGL you will be left with a lot of tasks. Game Loops, Time Steps, Collision, Physics, Asset Management, Event Management, Memory Management, Buffers, ect... before you can even get your game up and running. You really need to have a reason to motivate yourself to push through if you're going down the lower level route because it's a major time sink.

 

Do you have any tips on where to go to learn SDL and OpenGL for someone who knows C++? I've used unity and quickly lose interest because while Unity does give you quick results, I never felt like the game was ACTUALLY mine. I want to make my own engine and editor. I think writing my own engine and tools would be more fulfilling than the game itself in some ways.

44 minutes ago, AndrewParker said:

Do you have any tips on where to go to learn SDL and OpenGL for someone who knows C++? I've used unity and quickly lose interest because while Unity does give you quick results, I never felt like the game was ACTUALLY mine. I want to make my own engine and editor. I think writing my own engine and tools would be more fulfilling than the game itself in some ways.

I used SDL in the past but like any library I run across I usually will review the includes to understand what is going on along side official documentation such as: https://wiki.libsdl.org/APIByCategory.

I don't personally use SDL anymore because I prefer to use SFML now. :) 

I know that many people will use Lazy Foo as a source for learning SDL:

http://lazyfoo.net/tutorials/SDL/

I would suggest looking at the openGL documentation and picking up a good book. You'll find references in the below link.

https://www.opengl.org/documentation/

Another reference page: https://www.khronos.org/registry/OpenGL-Refpages/gl4/

You can look up tutorials online, but some are dated for earlier versions. Try these ones:

https://learnopengl.com/

http://ogldev.atspace.co.uk/

Sorry, I cannot suggest any books because It's been a long time since I had to pick up one. Now I mostly use reference material. Maybe someone else can provide a good book, or you can check out www.amazon.com and search for OpenGL books, but pay attention to what version they're written for, and the reviews.

You'll also want to look into Game Loops and Time Steps:

https://www.koonsolo.com/news/dewitters-gameloop/

https://gafferongames.com/post/fix_your_timestep/

It's a very rewarding feeling when you're able to create your own tool kits and engine. :)

 

Programmer and 3D Artist

Advertisement

Great thanks for the quick reply! I'll for sure check out all the links you sent. Also yeah I totally know about paying attention to the version they're writing about...I bought a book on SDL a while back but the version was WAY outdated. I need all the help I can get haha!

17 hours ago, AndrewParker said:

Great thanks for the quick reply! I'll for sure check out all the links you sent. Also yeah I totally know about paying attention to the version they're writing about...I bought a book on SDL a while back but the version was WAY outdated. I need all the help I can get haha!

No problem. :) I sent you a PM with some other information you might find helpful.

I wish you the best on your journey.

Programmer and 3D Artist

This topic is closed to new replies.

Advertisement