Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
willol13898yLooks OK for me too. I often saw a "constants" file dedicated for this kind of constants declarations.
Above is right, at least add units on comments. And convention is generally to name constants in caps with underscore, like that : FIRE_RATE = 100 -
Ironicly I accidentaly deleted the templet after I took the photo. Good thing is that I have a photo.
Related Rants
-
LeMeow5First Rant I just discovered devRant. This is so cool. #HelloWorldRant
-
AmarN3Being one of the top devs (and a good student admired by most lecturers) at college, my most humbling experien...
-
Someone7My First Post My friend recommended me to try this app, and I was very impressed by the community here. 😀 ...
First !rant. I'm working on a 2d game using Game Maker at school and I just wounder if putting constants up this way makes you cringe. Is there a better way? This code is only run when switching to a weapon and he values can be put into the shooting script itself. I just want to know how you put in mass constants in general coding or even at all.
undefined
constants
first rant is not a rant