Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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 R. Aaman Oct 3 '12 at 15:02
Sorry Mahbubur, I'm not sure how it would be reworded. – Byte56 Oct 3 '12 at 15:32
Thanks to Tetrad for editing my question. – Md. Mahbubur R. Aaman Oct 3 '12 at 15:44
up vote 8 down vote accepted

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.
share|improve this answer
+1 for good resource. Can you add naming conventions in your answer? – Md. Mahbubur R. Aaman 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 R. Aaman Oct 4 '12 at 4:07
Ok. I have edited your answer. – Md. Mahbubur R. Aaman Oct 4 '12 at 4:17

I am a fan of object-oriented folder structures.

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

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

share|improve this answer
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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.