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" media="(min-width:479px)" href="https://www.gamearter.com/css/style-gp.css">
    <link rel="stylesheet" media="(max-width:479px)" href="https://www.gamearter.com/css/mobile-wrapper.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/html5/gamearter-gameplayer.js"></script>
    <script src="https://www.gamearter.com/gameplayer/html5/gamearter-instance.js"></script>
    <!-- ... game javascripts ... -->
    </footer>
    

For more information, including example implementation, download and check following package.

scroll to

Download SDK 2.0 (by pressing)

2019 - 01 - 17 (SDK release)

new Fully automatized. Fully managable via GameArter.

All files

support: @adm_vladimir on Slack or email [email protected]