Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Gamemaker Essentials

You're reading from  Gamemaker Essentials

Product type Book
Published in Mar 2015
Publisher
ISBN-13 9781784396121
Pages 154 pages
Edition 1st Edition
Languages

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}