This is an example of a game developed on the Ton chain using the Cocos game engine.
- Using Cocos game engine
- TON Connect UI to connect wallet
- On-chain transactions
- Sharing on Telegram Mini APP
- Payment
- Using game-engines-sdk
- Using cocos-telegram-miniapps extension
Import using cocos creator 3.8.3
Build option configuration
Target Environments
> 0.5
Install client dependencies:
cd client
npm install
Install extension dependencies and build:
cd client/extensions/cocos-telegram-miniapps
npm install
npm run build
- Copy
server/env_example
toserver/.env
- Open BotFather, run
/newbot
command and fill your new bot token toTELEGRAM_BOT_TOKEN
variable. - Fill
MNEMONIC
variable with your test wallet seed phrase. You can create one using assets-sdk by runningassets-cli setup-env
. - Install dependencies and run the server:
cd server
npm install
npm run start