Aim: Combine a framework that simplifies game development (Phaser) and one that simplifies web3 functionality (Moralis).
These tutorial videos are a great introduction.
Part 1: Core Integration (YouTube Video)
Part 2: NFT Power-ups (YouTube Video)
Via terminal, navigate to your local dev directory and run:
git clone https://github.com/ashbeech/moralis-phaser-demo.git
Then navigate into the cloned project's root directory to install all dependencies:
npm install
Go to Moralis.io to create your server instance. Rename .env.example
file to .env
and add your Moralis server credentials. For help see 'How to start Moralis Server'.
Run your app:
npm start
create-react-app
: โน๏ธ Docs
react-moralis
: โน๏ธ Docs
phaser
: โน๏ธ Docs
- Incorporate play-to-earn mechanics via an ERC20 token contract. โน๏ธ useweb3executefunction
NFT Game Design Principles
Build an NFT Game Smart Contract
If you need help with setting up the app or have other questions - don't hesitate to write in our community forum and we will check asap. Forum link. The best thing about Moralis is the super active community ready to help at any time! We help each other.
If this code brought you value, please star this project.
This is bullish.