How does one use c++ to make game and how complex is it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How does one use c++ to make game and how complex is it?

please help !

13th Aug 2018, 10:50 AM
Perry
5 Answers
+ 1
(A little intro) C++ has many advantages when it comes to gamedev, the biggest one is that C++ is low level language hence it's fast. Also it allows you for dynamic memory allocation. Going back to your original question. You have to use graphic library like DirectX or OpenGL, but it's super complex, you can aswell choose wrapper of one of them, like SFML or SDL. When talking solely about game architecture there's a lot of design patterns to learn. Generally we want our game to be as fast as possible, so player will not feel any fps drops even with complex operations. Also knowledge of C++ STL will help you tremendously. Pointed summary: 1. Choose library/wrapper 2. Learn game architecture 3. Learn C++ STL 4. Code the game ^^
13th Aug 2018, 11:37 AM
Jakub Stasiak
Jakub Stasiak - avatar
+ 2
If you want to make a game then c++ maybe is the wrong language to start with. But if you want to make a game that is faster then sonic, then maybe c++ is the right choice.But make sure that you are already on a intermediate level with the language. Trust me, you will have a bad time if you want to make a game in a language you have not mastered.:) If you want to make a game in c++ and you pass the requirements, then install and implement a game library like sdl2 or opengl. These two libraries are used for the majority of the c++ games.
14th Aug 2018, 7:24 PM
Youtube Parade
Youtube Parade - avatar
+ 1
if you will like to create complex game , than I will say c++ maybe a wrong choice but you can still create pretty little simple game , like block man and other , another thing is to note that most c++ game can mostly be hard to run on another same different from the one it was created, I recommend you use C# for high level Oriented programming
14th Aug 2018, 8:20 PM
George S Mulbah II
George S Mulbah II - avatar
0
making game through c++ can be a little hard but the language is quite easy and user friendly to learn.
13th Aug 2018, 11:33 AM
Nitesh Kumar Pandey
Nitesh Kumar Pandey - avatar
0
With engine 4 this is a program to make Gamaes With C++, professional Games, but. You need to learn more languajes
14th Aug 2018, 8:50 PM
Andrés Ornelas
Andrés Ornelas - avatar