Make a theme
Since X-Moto 0.2.0, it is possible to make new themes and add new sprites/textures easily. You can remake all the graphics of the game.
A theme is composed of an xml file and of pictures files. The xml file give information about the theme and gives name of the file to use for each component as described bellow.
Pictures must be squares and their sizes must be a power of 2 (64x64, 128x128, 256x256) Pictures larger than 50Ko will not be accepted Pictures must be png or jpg
Make a new theme
To create a theme, you should start by copying an existing one. If you update your themes in the game, you will found some theme files in the dir Themes in ~/.xmoto (UNIX) or in your install dir (Windows). A theme file looks like this :
<?xml version="1.0" encoding="utf8" ?> <xmoto_theme name="Classic"> <sprite type="BikerPart" name="PlayerBikerBody" file="Body1.png" /> <sprite type="BikerPart" name="PlayerBikerFront" file="Front1.png" /> ... </xmoto_theme>
- First, copy an existing theme as a new file
- Open the theme and change the theme name by a new one (replace "Classic" by "My Theme")
Congratulation ! You made your first theme which is simply a copy of an existing one. Now, you can try to modify or add new entries.
Currently, it's not possible to send your new themes via the website ; use the message tab and give your email to contact us if you want to make your theme downloadable by other players.