So, I'm listing all the atributes for the player (sprite object), and for now I have 33 global variables referencing the atributes. It seems right, since the player travels through various layouts.
A friend of mine told me too much global variables can impact performance, and that I should use array to store the values.
OK, it makes sense, I think.
BUT if my event for movement is a function like
Input button is pressed >> Move PlayerSprite (SPEED*2) at angle α
(with SPEED now being a global variable)
If I SPEED change it to an array value, it does even make any change? Because the game will have to access the array value every single tick anyways...
Am I overthinking it?