Magic numbers abound
JohnathonNow opened this issue · comments
It would be nice if a lot of the magic numbers were moved to constants, especially ones reused (like the size of the screen, the framerate, etc).
Hey! I would like to give this a shot!
Sounds good, thanks!
I see that height, width, fps are already included in the Constants.java file. Is there anything else you would like me o add in there?
So there are just numbers sprinkled throughout the code, as many as can be moved out the better. Some examples:
is some amount over the player to draw their health meter,
is the player's size, which should definitely be a constant somewhere, and
Bending/src/main/java/com/johnwesthoff/bending/logic/World.java
Lines 110 to 137 in e6dce16