Book Image

Gamemaker Essentials

4 (1)
Book Image

Gamemaker Essentials

4 (1)

Overview of this book

Table of Contents (16 chapters)

Resource naming conventions


While working with GameMaker, you will begin to see how important it is to keep things as organized as possible. Part of this is keeping resource names short and concise. If your resource names are long and complicated, it can lead to ugly and confusing code later on.

Due to GameMaker having specific resources, it becomes easy to keep resource names clean. The easiest and most commonly used way to keep names consistent and specific to each resource type is to pick a code word or letter to put in front of the actual resource name.

When looking at other GameMaker projects, you will see a few different implementations of this. We are going to take a look at the three-letter code word technique. This is where you pick a three-letter code word to put in front of your resource name. The code word should be specific to each resource type. There is no need to stick to three letters. You can use one, two, or more letters if you want to.

Here are some commonly used three-letter...