I know this topic has been talked about over and over again, but as a newbee i don’t yet get it.
Most example games i’ve seen use a KeyListener when detecting a pressed key and set a boolean variable like downArrow or k_button. Later some method do something like “if (downArrow) positionY += 1;” The question is why can’t we do this simple thing right when we detect the keypress?? Why all these booleans?? I can understand if there is a lot code for a keystroke that you want to move that block of code to another place making i cleaner. But for the example above it would only make it less readable. Also if you got several Threads running i can understand it, but for single threaded apps?
What am i missing? PLEASE. =)