Hi,
Occasionally i read that people aren’t that keen on using static variables. Untill recently i didn’t really understood why this could be potentially problematic until some of my Texture images got just disappeared when i tried running my game for a second time on my android device: -> http://www.java-gaming.org/topics/android-libgdx-images-disappear-after-i-start-my-debug-apk-from-widget/34441/view.html
This tought me that i should not load my images using static fields.
But what about variables and arrays.
I still find it very convenient of storing variables or arrays I am using over different classes in one class and then be able to access those variables or arrays by just importing the class i created for the variable and/or arrays with a simple import statement; f.e.
import static "packageName".Variables.*
Now everytime i need to use those variables/arrays it’s not necessary to reference to the specific class every time.
But I was wondering if there are any issues with this just like when I was using static fields for loading my Images??