current project is system's complete, just grinding out art, writing, and designing combat encounters rn. still probably a longs way off but im making decent progress
i like to draw and make video games
Joined on 1/10/21
Posted by 3amsoda - September 7th, 2021
There was a godot game jam this weekend, before uploading my game here I thought itd be good to figure out how to add newgrounds medals and scoreboards to it. you can check out my game w/ newgrounds api integration here
It was pretty simple, I uploaded the html files to my newgrounds file dump for anyone to use newgrounds-godot.zip
There 3 files, index.html, newgroundsio.js, and ng-integrate.js
Index.html should be set as the custom html shell (red arrow below)
newgroundsio.js and ng-integrate.js should be dropped in the build folder (blue arrow)
Set APP_ID and AES_ENCRYPTION_KEY in ng-integrate.js to your games ID and key.
Make sure you call "initSession" on the handler for a user mouse down input.
Then you call unlock medals and post to scoreboards like so:
hope this helps! feel free to dm me with any questions.