Jump to content

Naming conventions for global javascript variables


Recommended Posts

Hi all:

Just wanted to know a bit more about the naming conventions for global javascript variables. If this topic was already covered on the wiki, I appreciate a pointer to it.

In gui/session_new/session.js, I see global variables like g_EntityStates and g_Players that are prefixed by 'g_'. But, In input.js, I see global variables like mouseX and mouseY that are not prefixed.

Is my assumption, that all of the above variables are global, correct?

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...