All Projects → loomnetwork → tiles-chain

loomnetwork / tiles-chain

Licence: MIT license
No description, website, or topics provided.

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
go
31211 projects - #10 most used programming language
Makefile
30231 projects
shell
77523 projects
HTML
75241 projects

Tiles Chain Build Status

A basic example showcasing a simple HTML5 + WebSockets interacting with a Loom DappChain, using Phaser and Loom.js.

Game instructions

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

Development

1.) Run your own DappChain

Please consult the Loom SDK docs for further instruction on running your own DappChain.

2.) Download the example project (Tiles Chain)

git clone https://github.com/loomnetwork/tiles-chain

3.) Start the DappChain

cd tiles-chain
mkdir tmpgopath
export GOPATH=`pwd`/tmpgopath

cd dappchain
wget https://storage.googleapis.com/private.delegatecall.com/loom/osx/build-404/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

4.) Start the web server

# On second terminal
cd tiles-chain/webclient

# Install
yarn

# Compile protobuf
yarn run proto

# Start the demo
yarn start

5.) Running

The Tiles-Chain web interface will be available on http://localhost:9000

Loom Network

https://loomx.io

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].