+ 1

How do we make programs actually work?

How does a program go from making decisions to actually visually appearing on our screen? For example, games like first person shooters. How do these games go from decisions, loops, control flow and all the other theoretical principles we learn to actual games which are dynamic and visually complex? Can simply lines of code be enough to make such complex things? Are other programs involved to create the visual aspect or is it simply thousands of lines of code in an IDE? I realise this is possibly a naive question, but I'm struggling to see how this is even possible.

12th Jul 2019, 4:19 PM
Thomas Hutchinson
Thomas Hutchinson - avatar
2 Answers
+ 3
No expert but from which I know from all the basic things to the point something is displayed on the screen it is a long way... (And it is not written in modern languages at its core) Thats why people don't write such code for their project but use some libarys or api's that are already written to display and work with visual things. Here is a Video from a cool Youtube Channel where a Game Engine is created but this isnt the core of the work because the work to display something in c++ is already done. https://youtu.be/HQYsFshbkYw
12th Jul 2019, 4:43 PM
Checker 8763
Checker 8763 - avatar
+ 2
in html you can use the canvas element to display 'anything', like games there are tons of other methods, but I use it since it's the easiest for me, since I program alot on my phone on an special app ... 😅 (this is what I do, it's medium complex... https://code.sololearn.com/WS4jz0f7X2Qf/?ref=app)
12th Jul 2019, 4:37 PM
Anton Böhler
Anton Böhler - avatar