Skip to content

Naming Conventions

Ahria edited this page Feb 9, 2022 · 13 revisions

In Game

Bolded lettering indicates keywords to remember.

Italized lettering indicates what you can do or interact with.

Outside Game

All naming conventions stated and outlined in the brand book are to be followed. However, when it comes to naming JavaScript files, there are some exceptions.

File Structure will be more crucial to finding what our files are and what they do. Current working file structure:

  • Root
    • fnt
    • css
    • scr
    • index.html Scripts will be delineated by their respective library folder and will NOT be abbreviated for sake of findability.

Exception to that is the Leaflet library as the entire map broke when the scripts were not at the root of the scr folder.

Commits

When you are writing the summary for your commit (50 chars or less) it is common practice to do it in the present tense. So if for instance you added a function called addthree(), you would write the summary as:

add function addthree() to index.js

Description is where you are able to go in depth of the functionality.

Version Numbering

Version numbering will follow very loosely the standards set in SemVer 2.0.0.

x.y.z-[milestone]

x = Major Release

y = Minor Release

z = Patches and Bug Fixes

[milestone] = alpha, beta

This will allow us to track our progress more, and have a version to rollback to just in case something catastrophic happens. (I've already had this happen once on a separate project).

All builds will be appended with alpha before October 6th: Our project will start from at v0.1.0-alpha

After October 6th beta will be appended instead: v0.1.0-beta

Room Ids

Because of the complicated nature of rooms and the sheer number of them we need an easy way to remember and connect them.

If one of the exits to the room is a continuation of previous room, append with a dash and number starting from 1.

Non-Street Rooms

ex. Hotel Room roomId: hote-room

Street Rooms

Before dash: East to West After dash: North to South

ex. 53rd St and 5th Ave: roomId: 53-5

For named streets:

ex. 59th St. and Central Pk. W.: roomId: 59-cent

ex. Park Row and Centre St.: roomId: park-cent

Clone this wiki locally