JS API Documentation
Very important for your games to be of the best possible quality and to avoid most mistakes is that you read our js api documentation in github.
The 2 main links you should read and follow are:
- You should download our _SG-Hooks.zip: Then read the github for general rules on how to create a backend for your games we can later use, start your game the right way , give us important info from you game: user level up, game over, etc. And general coding rules for HTML5 games. All this functionalities are provided by our SG-Hooks object.
- For construct2 games: we have a Construct2 Plugin with which the same functionality provided by the SG-Hooks object can be applied to Contruct2 made games.
- Call SG_Hooks.start(): call this function when the user presses the START button inside the game, NOT when the game is loaded.
- In general: after developing you game please play it once, if the game throws any of the error messages of the SG-HOOKS object please re-check the game and apply the object properly.