Each sprite can also be include to your game by adding an URL.
public Fish()
{
super("http://www.gamegrid.ch/bb/downloadSprites/babelfish.gif");
}
To get the picture's URL, do the following:
- search for it in the web - right-click it - choose "Copy Image Address" (clipboard) - at the address to the program |
Remember, that the pictures need to have a transparent background and ideally have the size 60 x 60 pixel. If your picture does not match these criterias, edit it in a picture editor and save it as a gif- or png-file. Only these two file formats allow a transparent background.
The built jar-File does not include the web-sprites. They are loaded each time the game is executed.
Other sprite libraries: