A basic example showcasing a simple HTML5 game interacting with a Loom DappChain, using Phaser and Loom.js. Souce code is available on Github
Game instructions
Use the arrow keys to move around, jump by pressing the up arrow. For each passing row of blocks, 1 point is awarded. Collect bonus stars to increase your score further.
Development
1.) Run your own DappChain
Install Loom
wget https://private.delegatecall.com/loom/osx/stable/loom
chmod +x loom
mkdir contracts
wget -O contracts/blueprint.0.0.1 https://private.delegatecall.com/weave-blueprint/osx/build-9/blueprint.0.0.1
chmod +x contracts/blueprint.0.0.1
./loom init
cp ../genesis.example.json genesis.json
Run Blockchain
./loom run
Please consult the Loom SDK docs for further instruction on running your own DappChain.
2.) Start the dev server
Run dev server
#Get Source
git clone https://github.com/loomnetwork/phaser-sdk-demo.git
cd phaser-sdk-demo
# Install
yarn
# Compile protobuff
yarn run proto
# Start the dev server
yarn run dev