+31 (0) 20 760 2040 info@spilgames.com

API Load

Include the API

Include the Game API (game.js) in the <head> of your HTML game file. Typically the index.html.

After loading the game.js file, ensure you initialise with the SpilData variable (the ID you see below is specific to your game, ensure you get a unique number from Spil Games) then fully initialise the API using the LoadAPI function as seen below.

After updating your HTML file, see if it works in the Google Chrome Console (more on using Chrome console log.)



Next step: User