The use of states in videogames.
Fundamentals of programming are not the only important thing to understand in order to code something that makes sense.
When it comes to games I like to think of it as ATM machines were there is a step of sequences programmed according to the button ...
pxljoh.hashnode.dev1 min read