# Naming conventions for external resources?

While we develop games, then we have utilize several external resources, for example

• Image
• Sound
• Animation
• Sprite Sheet

Is there any good naming convention regarding these external resources?

• Aren't file extensions sufficient? – Laurent Couvidou Oct 3 '12 at 12:02
• @Byte56 Please help me to write the question in currently worded. – Md Mahbubur Rahman Oct 3 '12 at 15:02
• Sorry Mahbubur, I'm not sure how it would be reworded. – MichaelHouse Oct 3 '12 at 15:32

I have a folder for my sources, i call it src and a folder for assets called assets which looks like:

- Assets
- Images
- Sounds
- Scripts
- Animations
- Config (for property files etc.)
- ... (maybe others regarding the game i'm working on)


EDIT: And regarding naming conventions for those resources

• Use a period to separate the base file name from the extension in the name of a directory or file.
• No white space
• Do not end a file or directory name with a space or a period.
• For long file name use hyphen(-)
• Any other character that the target file system does not allow.
• +1 for good resource. Can you add naming conventions in your answer? – Md Mahbubur Rahman Oct 3 '12 at 15:26
• @MahbuburRAaman i don't have naming conventions? Not sure to understand what you mean, feel free to edit the answer :-) – nathan Oct 3 '12 at 20:49
• I mean the Images for example, backgroundimage.jpg or backGroundImage.jpg or background-image.jpg. Naming conventions for images and other external resources. – Md Mahbubur Rahman Oct 4 '12 at 4:07
• Ok. I have edited your answer. – Md Mahbubur Rahman Oct 4 '12 at 4:17

You can take help from Microsoft's File,Stream,Path and Namespace resources

Also following resource

I am a fan of object-oriented folder structures.

- Gui
- HealthBar.png
- ManaBar.png
- Layout.xml
- Creatures
- Elves
- Elf Sharpshooter
- Definition.txt
- Sprite.png
- Script.as
- Elf Fighter
- Definition.txt
- Sprite.png
- Script.as


Make sure that the paths are case-sensitive else you will run into problems with everything not windows.

• Well, if you open up 3 files by the name of "Definition.txt", that's a recipe to get confused quickly, because most IDEs/text editors will just display the file name. I like to tell which file is which by just looking at the filename. – Liosan Oct 4 '12 at 9:47