Hi there, I have been struggling with this for some time. Im working on a game project where you can upgrade your ship and weapons stats in shop than continue to another level.
Something like in Tyrian (
shop screen is in 2:10) Top Down shooter, but bit more complex. I want to change statistics of each weapon and each ship. Ship statistics would be max speed, agility, HP, Shield points etc. Weapons would have its own stats.
Here is the catch, I want to make it somehow without using lot of global variables (maybe 4 to 6 maximum). Is it even possible? If not, how many of global variables I should use.
Thanks in advance!