Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@webxdc/highscores

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webxdc/highscores

Highscores API for webxdc apps

  • 5.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-76.92%
Maintainers
0
Weekly downloads
 
Created
Source

Highscores

Library to facilitate the process of creating score-based webxdc games. It can handle multiple scoreboards at the same time.

Install

npm install @webxdc/highscores

Usage

Import @webxdc/highscores lib (webxdc.js also needs to be included) in your index.html:

<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <script src="webxdc.js"></script>

    <script type="module">
      import "@webxdc/highscores";
      // you can use window.highscores here
    </script>
  </head>
  <body>
    ...
  </body>
</html>

Usage without modules

Include webxdc-scores lib (together with webxdc.js) in your index.html:

<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />

    <script src="webxdc.js"></script>
    <script src="./node_modules/@webxdc/highscores/dist/webxdc-scores.umd.js"></script>
  </head>
  <body>
    ...
  </body>
</html>

Then you can access the API via window.highscores object, check dist/webxdc-scores.d.ts file for documentation of the available API.

For a full example check the example/index.html file.

Keywords

FAQs

Package last updated on 14 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc