GameArter SDKs libraries are being loaded automatically after adding game files to gamearter.
For option of testing on a local device, there is need to add gamearter SDK libraries manually into index.html file. After this action, all GameArter services are available and can be tested right in a local device (e.g. localhost).
GameArter works with a shared - backward compatible sdk library - 1 version of library for all games regardless of release time.
Quick implementation
-
1
Placing styles at the end of head of index.html file
copy<!-- ... --> <head> <!-- ... game styles ... --> <link rel="stylesheet" href="https://www.gamearter.com/gameplayer/css/shared.css"> <link rel="stylesheet" media="(min-width:479px)" href="https://www.gamearter.com/gameplayer/css/desktop.css"> <link rel="stylesheet" media="(max-width:479px)" href="https://www.gamearter.com/gameplayer/css/mobile.css"> </head> <!-- ... -->
-
2
Code for game body
copy<!-- ... --> <body> <main role="main" id="main" class="main" style="height:100%;padding-left:0"> <div id="ga_game" style="height:100%;position:relative;"> <!------- GAME BODY SPACE START ---------> <!--------- GAME BODY SPACE END ----------> </div> </main> </body> <!-- ... -->
-
3
JavaScript libraries
copy<!-- ... --> <footer> <script src="https://www.gamearter.com/gameplayer/js/html5-gameplayer.js"></script> <script src="https://www.gamearter.com/gameplayer/js/html5-instance.js"></script> <!-- ... game javascripts ... --> </footer>
support: @adm_vladimir on Slack or email [email protected]