How is a Video Game created by codes and functions?
I am having THE hardest time wrapping my head around the idea that long strings of functions and codes, written in C++ and other computer languages, are able to create a video game… Can someone please describe to me how strings of codes are able to translate into a 3D environment in a video game??? Or even just a 3 dimensional object for that matter. I COMPLETELY do not understand how this works. Please help me conceptually understand how video game programming works. Thanks.
I suggest you read a bit about either XNA (for beginners and amateurs) or DirectX or OpenGL (both for pros).
They are API’s for displaying 3D…
As a basic, you can write a function to show a pixel to the screen, right?
If so, you can probably create a function to show a triangle, right?
If so, you can probably create a function to show many triangles, right?
If so, you can probably create a function to show many triangles seen from a different angle, right?
If so, you can probably create a function to show many triangles arranged as 3D objects…
You might need to understand first 3D geometry (matrices, quaternions, vectors, R3 vectorial algebra and so on…)
As for 3D objects, they are made from polygons (triangles).