-
Notifications
You must be signed in to change notification settings - Fork 0
XML game format
Yevgeny Nyden edited this page May 16, 2024
·
9 revisions
Native games are stored in the XML file format and adhere to the following rules:
- A game name must be provided;
-
Categories:
- Category name should ideally be 1-2 words;
- Maximum number of categories - 10;
- Minimum number of categories - 3;
-
Questions:
- Maximum number of questions in a category - 7;
- Minimum number of questions in a category - 3;
- Every category must have the same number of questions.
-
You can also provide up to 10 bonus questions, which are offered to players in random order (every player is offered to answer 1 bonus question at the end of the game).
Example of a bonus question entry:
300
What?
It
You can also provide a list of players - minimum 2 players is required, maximum number is 6.
Example of players entry:
<entry key="player.1.name">One</entry>
<entry key="player.2.name">Two</entry>
If images are desired in questions, all game assets including the game XML file
and the images should be nested in a dedicated directory with an extension .jj; and images
could be added to questions in the following way:
<entry key="category.1.question.2.img">image-file-name.jpg</entry>
<entry key="bonus.1.question.img">image-file-name.jpg</entry>
The directory would look something like this:
game-directory.jj
game-file.xml
image-file-name.jpg