Bonusing API integration

1. Recompile games

a. Please download this game-api.js file.

game-api.js


b. Add div with exactly naming to the element you want (for example game container) for API to add content to.


c. Import to your main.js or html

            
/* Install BonusAPI */
import('./game-api.js');
            
        

Then, compile your game


2. Without recompile

a. Please download this game-api-min.js file.

game-api-min.js


b. Upload the file to root folder of game FE (same level with html file).


c. Add those code to your html file. Should place inside game container or where you want to add the API content.

Then, run your game