Crazygames SDK

johnjanowskibsc

  • *
  • Posts: 153
Hi,

Has anyone got any experience of implementing the Crazygames SDK into their games?

https://developer.crazygames.com/sdk#HTML5

I just seem to be going around in circles!

Thanks in advance

Justin

  • *
  • Posts: 4583
Hi. The crazygames SDK is available from the polydes repository.

In Stencyl, Extensions > Extension Repositories > [ Click to add repository] > http://www.polydes.com/repo

A sample game is available here. Click the green "Code" button, and then "Download Zip" to get it. Extract it, rename the folder from "crazygames-sample-game-master" to "crazygames sample game", and then you can add it to your "stencylworks/games" folder and restart Stencyl.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

johnjanowskibsc

  • *
  • Posts: 153
Thanks for this. Looks great

johnjanowskibsc

  • *
  • Posts: 153
Thanks again for your help - I can't seem to install the Crazygames SDK - I have attached the log. Subsequently this was the output when testing the sample game - is this correct?


Justin

  • *
  • Posts: 4583
Sorry, looks like a couple of the more recent versions of the extension had some metadata that trips up older versions of Stencyl when trying to find the latest available version of the extension. I've fixed up the metadata so you should be able to download it now.

Since you opened the sample game without having the extension, you may have lost some of the design mode blocks from the test scene (if you saved it). In that case, delete the sample game and import it again. Losing blocks like this is no longer an issue in the more recent private builds of Stencyl, in case you feel inclined to update.

That's correct output for the sample game. You need to add /sdk.html?testAds=true to the end of the url that Stencyl opens when you test an html5 game in order to test crazygames functionality.

Not everything can be tested locally. Some things (like happy time) need to be tested on their servers.

« Last Edit: October 30, 2021, 07:40:53 am by Justin »
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

johnjanowskibsc

  • *
  • Posts: 153
Thanks again - will take a look later, really appreciate your help

johnjanowskibsc

  • *
  • Posts: 153
Thanks - I've managed to install the crazy games SDK - but I could only see the blocks in the sample game. When I go to access the blocks under extensions within the events palette they are missing. Is there anything more I should be doing?

Justin

  • *
  • Posts: 4583
I'm not seeing that problem. Could you try again and upload your logs? Maybe something will show up there.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)