Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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

3 Answers 3

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

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

 
discard

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.