pieces
Number of unique pieces - game will have pieces*2 squares
options: integer
default: 10
players
Number of players
options: integer
default: 1
startPlayer
Number of starting player - first player has number 1 (not 0)!
options: integer
default: 1
pictures
Array of picture sources
For this you can use function from file get_images.php - like this: "pictures = <?php echo get_images_for_pexeso('images/pexeso/browsers'); ?>;" - creates array from all files (make sure you have there only images) in selected folder.
options: array of strings
default: []
switchOnPoint
True for switching player always after 1 step, false for switching player only if his step was wrong (if his step was correct he will continue).
options: boolean (true/false)
default: false
waitForLoad
True - game will start after all pictures are loaded (I recommend to add some loader, that will cover the game area and check onGameLoaded callback).
False - game starts immediately - you risk problems when player turns empty (not loaded) picture.
options: boolean (true/false)
default: true
waitTime
Time to wait before the quares are turned off. In milliseconds. This is important when css transitions are not used, because there will be no delay and the square will be turned off immediately, so the player will not notice what picture was there.
options: integer
default: 1500
squareDone
When standard game is played the pictures that are solved stay in the game area, they are just covered so the players know they are solved (this is when the default 'cover' option is used). But when we want to play game where we reveal big background-picture in the back, then the pictures cannot be just covered, they have to disappear, that means different animation than 'cover' must be used, I call it 'square' animation. So 'cover' option for animating cover over the square, 'square' option for animating directly the square.
In case no animations used (turned off or not supported) this setting has no effect.
options: string ("cover" | "square")
default: "cover"
useCss
If used web browser do not support 3D transforms, no transforms or animations will be used. If 3D transforms are supported they are used, but they can be turned off by setting this option to false.
options: boolean (true/false)
default: true