SDK
Installation
npm i haste-arcade-sdkInit()
import { GameService, Origin } from "haste-arcade-sdk";
const game = new GameService(
"f8c22e6c-1086-4529-8800-2c72f98b9915", // your gameId
Origin.DEV, // this is the host (arcade) origin. Use DEV or PROD
);
// Ensure that the DOM is loaded before calling the init method
document.addEventListener("DOMContentLoaded", function () {
game.init();
});
// This may be implemented differently depending on your game's framework.Play()
submitScore()
getLeaderboard()
transferHst()
Last updated