Answer the question
In order to leave comments, you need to log in
How hard are c++ and openGL games?
Hello everyone, tell me how difficult it is to create 2D games in c++ and openGL, and what kind of mathematics is worth learning? And the second question, if it’s not difficult, then tell me how such a game dev differs from such a mobile only one. And is it worth starting at all if I’m only 16 years old and have 3 in mathematics
Answer the question
In order to leave comments, you need to log in
You will have three difficulties in creating games:
1) programming, and C ++ in particular is not the best language for learning programming, although as a second language it is quite suitable. As a game development tool, the pros certainly lead the way.
2) computer graphics, and OpenGL in particular - you will need to have a good understanding of how images are calculated, and how the final picture is assembled. To develop games, you will need knowledge of the graphics pipeline, shaders, an understanding of the general principles of raster and vector graphics (what is color, pixel, raster, how vector primitives are defined), an understanding of animation principles (how to draw a moving picture).
3) mathematics, and linear algebra in particular. Operations with matrices and vectors are the minimum without which you can't even do 2d. If you want all sorts of realistic effects - this is also physics, in particular - mechanics. Before drawing a projectile flying along a ballistic trajectory, you must first calculate WHERE it will be on the screen (in virtual space) at each time interval. Well, so with the whole stuffing of the game. You should clearly understand that if you are not going to take a ready-made graphics engine, then opengl will only be able to draw anything you tell it to. What to draw and where - you will have to program yourself, in all details. As GavriKos
already said, game dev is a complex area, one might say the engine of progress in entertainment technology. Of course, not all game developers are involved in the creation of the most modern engines or the largest MMO projects, but it is impossible to lag behind in this industry - only games with an original idea can afford 10-year-old graphics, for example.
1) Gamedev is a complex industry. It's not worth it to start learning programming from it.
2) Mathematics may not be useful. But it's better to know. Depends on the task.
3) It's hard to write games on the pros.
4) The game, written on the pluses and openGL - will start almost everywhere. The question is only in the layers for accessing the API of the system.
5) Development for any platform differs mainly in the use of the features of this platform and in the approach to optimization and resources. In fact, the logic code of which Tetris thread on the pluses will be absolutely the same for PCs, and for mobile phones, and for anything else.
As already mentioned, Linear Algebra will help you a lot. It is needed to effectively calculate the position of objects and their movement in space.
Algorithms are the same everywhere whether it's a desktop, mobile phones, servers. The only difference is the environment in which they run.
If you wanted to, you would not ask stupid questions, "maybe early?", "maybe wait ...". Whom to wait? Nobody will wait for you. If you are only lured by big money, then you will never become a good developer.
Well, it's easier to start with some ready-made engines. Although it depends on your goals. In fact, working with 2D graphics is not particularly difficult, orthogonal projection and that's it. But in gamedev, the complexity is far from graphics.
oh yes, apart from sine and cosine and matrix multiplication, nothing is needed there. so don't be afraid of anything
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question