Created: 10/08/2017
By: All-Scripts
Email: info@all-scripts.de
Thank you for purchasing our game. If you have any questions that are beyond the scope of this help file, please feel free to email via user page contact form here. Thanks so much!
The "Scratch and win" is a HTML5 scratchcard game.
This game has been developed in HTML5 / JavaScript and third-party library phaser - http://phaser.io/
Features:
• Audio on off
• Fullscreen
• Multilanguage can choose in the settings (English / German / Spanish)
The ZIP package contains the game with 1280 x 720 resolution that scales to fit the current screen device.
The game is fully compatible with all most common mobile devices.
To install the game just upload on your server the game folder game.
to this (with the size you like):
And you need declare the GAME_PATH in the file "src/game.js":
const GAME_PATH = 'PATH_TO_THE_GAME/';
{
"bet": 5, // price of bet
"decimal": 2, // decimal of credits / wins
"currency": "pts", // Currency where you want display
"wins":[
{"win": 2, "count": 200, "percent": 70},
{"win": 5, "count": 100, "percent": 60},
{"win": 10, "count": 55, "percent": 45},
{"win": 25, "count": 25, "percent": 35},
{"win": 40, "count": 5, "percent": 25},
{"win": 5000, "count": 3, "percent": 1}
] // you can define custom wins here. For testing your settings copy the tools/calculator.html to the directory and call them over your browser.
}
We using two CSS files in this Game.The first one is a generic reset file. Many browser interpret the default behavior of html elements differently.
By using a general reset CSS file, we can work round this. This file also contains some general styling, such as anchor tag colors, font-sizes, etc. Keep in mind,
that these values might be overridden somewhere else in the file.
The second file contains the background color of the page and maybe for future updates.
This game contains five JavaScript files.
This game contains 2 PHP files.
12/05/2023:
- Replace jQuery and JStorage with Vanilla Javascript
- Update Pictures from png to webp
01/08/2017: The mask doesnt load when declare an invidual path.
18/08/2017: The API dont widthdraw the wins.
Once again, thank you so much for purchasing this game. Fell free to contact us if you have any questions or issue relating to this game. No guarantees, but we'll do our best to assist.