Skip to content

mothepro/lit-amazons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Roadmap

  • Dark mode with toggle
  • Nicer color scheme
  • Run deploy scripts on offline mode
  • Even better: use a query param to toggle between offline mode (disabling the p2p-switch)
  • Support drag and drop on mobile