webgamer
v0.2.1
Published
The Webgamer.io SDK
Downloads
34
Maintainers
Readme
WebGamer SDK
This is the SDK for WebGamer.io.
Installation
npm install webgamer
# or
yarn add webgamer
# or
pnpm add webgamer
Usage
At the moment, the only functionallity of the SDK is to let you know if your game is currently being played on WebGamer. It can be useful to hide your in-game fullscreen button for example.
import { isOnWebGamer } from 'webgamer'
if (!isOnWebGamer) {
showMyFullscreenButton()
}
or without a bundler:
<script src="node_modules/webgamer/index.js"></script>
if (!WEBGAMER.isOnWebGamer) {
showMyFullscreenButton()
}