Hi guys
As the title are torn between the use of local and global variables.
In my game I did different classes and almost all require common variables as standard size (es.
local dimGuy = display.contentWidth/3
).
My question is therefore whether it would be better to declare these variables (about 10) as global in the main, or declare from time to time these variables in each class. The fact is that if I had to change one should do it in all classes, and I do not like.
On the other hand if the global variables did, my classes would no longer OOP. What do you suggest? I have the same problem with some of the methods that I use often …