Adding graphics
From NetGore Wiki
This page is intended to show beginners how to add new graphics.
| Difficulty | |
|---|---|
| Topics | Game content,Graphics |
| (view all tutorials) | |
Contents |
Creating the graphics
Create and save the images you would like to use in your NetGore project using your image editor of choice (e.g. Paint, GIMP, Photoshop, etc). Most image formats work, but it is strongly recommended you use 8-bit PNGs (see supported image formats for details). PNG alpha channels are supported.
Place all the images somewhere in the \Grh\ sub-folder of the DevContent folder. Organize images appropriately using sub-folders and meaningful file names as these will become part of the category and title of the GrhData. For example, if you have a bunch of trees, you may want to place them in a folder such as:
C:\Netgore\DevContent\Grh\Environment\Trees\Pine.png C:\Netgore\DevContent\Grh\Environment\Trees\Oak.png C:\Netgore\DevContent\Grh\Environment\Trees\Fir.png
Updating
To use the new images, you will have to first create a GrhData for each individual sprite. This is best done using the automatic GrhData updater. It is possible to create the GrhDatas in other ways, but it is strongly discouraged to do so whenever possible.
Once you create the GrhDatas for the new images using the automatic GrhData updater, the list of GrhDatas in the editor will be updated to show the new items. They may now be used in NetGore.
Notes
- If you add images to DevContent while the editor is running, you must restart the editor before adding them.