GithubHelp home page GithubHelp logo

bindcreative / tiles-chain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from loomnetwork/tiles-chain

0.0 3.0 0.0 1.97 MB

License: MIT License

Makefile 5.31% Go 7.06% HTML 1.09% TypeScript 28.87% JavaScript 57.67%

tiles-chain's Introduction

Tiles Chain

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-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

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

tiles-chain's People

Contributors

eduardonunesp avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.