Comment by balamatom

4 hours ago

A 3D game, like any interactive program, is a REPL over a state machine:

1. Setup initial game state

2. Render graphics in accordance to game state

3. Read input and update state in accordance with it

4. GOTO 2

The purpose of C++ is to prevent you from realizing this. Don't use it and don't talk to anyone who uses it. Same for Java, C#.