0.2.1 • Published 1 year ago

webgamer v0.2.1

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
1 year ago

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()
}
0.2.1

1 year ago

0.2.0

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago