1.Cocos HelloWorld
+ 2.Zilliqa-js
+ 3.Zilliqa Network
+ 4.Zilliqa popup
= Hello Zilliqa
I. Init HelloWorld
Create new cocos creator project.
II. Generate ZilliqaJS SDK
cd deps
yarn install
# bundle the sdk
yarn build
III. Integrate to Creator Game
- copy the
A-zilliqa-polyfill-for-cocos.js
to your project's asset/script. Make sure it will be loaded first. - copy the
zilliqa.cocos.js
to your project's asset/script directory inside zilliqa folder. - copy the
ZilliqaNetwork.ts
to your project's asset/script directory inside zilliqa folder.
IV. Add zilliqa popup
V. Sample
There have two Sample project:
- zilliqanetwork the final of Hello Zilliqa project.
- tic-tac-toe use zilliqa sdk in a real game.