0.0.3 • Published 5 years ago

@mothepro/lit-amazons v0.0.3

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

<lit-amazons>

Game of Amazons made with web components

Install

yarn add @mothepro/lit-amazons

How to Use

index.html

  <script type="module" src="//unpkg.com/@mothepro/amazons-engine@0.0.6/dist/esm/index.js"></script>
  <script type="module" src="//unpkg.com/@mothepro/lit-amazons/dist/esm/index.js"></script>
  <script type="module" src="index.js"></script>
  <lit-amazons .engine=${window.engine}></lit-amazons>

index.js

  import Engine from '@mothepro/amazons-engine'
  window = new Engine

Take a look at the demo for simple of usage.

TODO...

  • Support drag and drop on mobile