I want to make a game engine by myself. And yes I know how long it could take but I want to get more in depth into programming and see what actually makes the games. So do you know of any tutorials of how to make a game engine and what goes in all of it. This is in C++ btw.
There is no clear definition of what a game engine consists of, but it's generally a library that provides functionality for rendering stuff, playing sound, user input (mouse, keyboard, gamepad, etc.), possibly network functionality, resource management and various things that can be useful for games (pathfinding, compression, hashing, ...) and possibly a widget library that integrates nicely with the rest.
So just start implementing those things that you likely are going to need in most of the games you write.