>>13224575Dude almost nobody does this himself. Get the Unity game engine and do some tutorials. Start from there.
What you are doing is stupid because you are asking how a game engine is made - not a game. These are 2 different things.
F.e. I worked on Tropico 6 and we used the Unreal game engine with a team of like 20 people. Only 2 people did engine adjustments the rest was out of the box.
If you still want to do it yourself:
Google how to make a perspective cam or orthogonal camera.
Phong lightning for light.
Game Physics for collision
I've wrote this all myself because I had to at Uni but you should never do this irl ffs