Skip to content

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:

Rules:

  • A game name must be provided;
    • Categories: * Category name should ideally be 1-2 words; * Maximum number of categories - 7; * 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:

      One Two

      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:

      image-file-name.jpg image-file-name.jpg

      The directory would look something like this:

      game-directory.jj game-file.xml image-file-name.jpg

Clone this wiki locally