M
muddman
Guest
Hi All,
I've slowly been learning GML via various tutorials and was wondering if there was a GML coding standard. From what I've seen in Gamemaker's documentation, it looks like names are snake cased and Allman braces are preferred. I think that's a good start, but it leaves a lot of questions.
One of which is naming scripts, sprites, objects, rooms, etc.
In tutorials, I've seen:
I know the general rule is to 'be consistent' but given GML has been out for a while now, I'm hoping an industry standard has emerged by now.
I've slowly been learning GML via various tutorials and was wondering if there was a GML coding standard. From what I've seen in Gamemaker's documentation, it looks like names are snake cased and Allman braces are preferred. I think that's a good start, but it leaves a lot of questions.
One of which is naming scripts, sprites, objects, rooms, etc.
In tutorials, I've seen:
- obj_foo
- obj_Foo <- seems to be the most widely used
- o_foo
- oFoo
I know the general rule is to 'be consistent' but given GML has been out for a while now, I'm hoping an industry standard has emerged by now.