0.0.5 • Published 4 years ago

amazons v0.0.5

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
4 years ago

<amazons-online>

Peer to peer game of Amazons

npm Published on webcomponents.org

Install

yarn add amazons

How to Use

AttributeTypeDefaultDescription
hiddenbooleanfalseWhether the element should be displayed
<!-- 
  Import the element.

  The `module` query parameter expands "bare" imports to full unpkg.com urls.
  This means use of an import map isn't needed.
  @see https://unpkg.com#query-params
-->
<script type="module" src="//unpkg.com/amazons/dist/esm/index.js?module"></script>

<amazons-online
  name="WebComponents Demo"
  signaling="wss://ws.parkshade.com:443"
  .stuns="[
    stun:stun.stunprotocol.org,
    stun:stun.l.google.com:19302,
    stun:stun1.l.google.com:19302,
    stun:stun2.l.google.com:19302,
    stun:stun3.l.google.com:19302,
    stun:stun4.l.google.com:19302,
  ]"
  retries=3
  timeout=5000
></amazons-online>

Roadmap

  • Remove yellow square when opponent is trying to destroy