player.gd refactoring
-
Put some of the player's variables into a singleton instead (variables like morale and ammo) -
Make variables and functions private if possible -
Sort variables according to GDScript sytle guide -
Sort functions according to GDScript sytle guide -
Replace direct function calls to other scripts with signals if possible
Edited by Victor