A basic example showcasing a simple HTML5 + WebSockets interacting with a Loom DappChain, using Phaser and Loom.js.
Use the mouse cursor to click on the black canvas area to create colored tiles, each new player will have a different color the canvas which is shared amongst all players
Please consult the Loom SDK docs for further instruction on running your own DappChain.
git clone https://github.com/loomnetwork/tiles-chain
cd tiles-chain
mkdir tmpgopath
export GOPATH=`pwd`/tmpgopath
cd dappchain
wget https://storage.googleapis.com/private.delegatecall.com/loom/osx/build-132/loom
chmod +x loom
# Compile
export GOPATH=$GOPATH:`pwd`
make deps
make
# Configure
cd build
../loom init
cp ../genesis.example.json genesis.json
# Run
../loom run
# On second terminal
cd tiles-chain/webclient
# Install
yarn
# Compile protobuf
yarn run proto
# Start the demo
yarn start
The Tiles-Chain web interface will be available on http://localhost:9000
MIT