Is code for a lot of video games mostly if statements?

642 views

I know some coding, it’s mostly for web development. To me it just seems things that happen in games occur as the result of some condition being met or not met. Am I missing the mark here or is it something similar?

In: Technology

6 Answers

Anonymous 0 Comments

I would not say that most statements if statements but many are.

If you are interested you can look at the code of some older computer games that have been published. So take a look at some older ID software games like DOOM 3 from 2004 where you can see what code for a commercial game looks like. A game from back then is fundamentally not that different from games today.

https://github.com/id-Software

You are viewing 1 out of 6 answers, click here to view all answers.