/flappy-bird

Primary LanguageTypeScriptMIT LicenseMIT

flappy-bird

This is an example of a game developed on the Ton chain using the Cocos game engine.

Features

Screenshots

game screenshots

Get started

client

Import using cocos creator 3.8.3 Build option configuration Target Environments > 0.5

Install client dependencies:

cd client
npm install

cocos-telegram-miniapps extension

Install extension dependencies and build:

cd client/extensions/cocos-telegram-miniapps
npm install
npm run build

server

  1. Copy server/env_example to server/.env
  2. Open BotFather, run /newbot command and fill your new bot token to TELEGRAM_BOT_TOKEN variable.
  3. Fill MNEMONIC variable with your test wallet seed phrase. You can create one using assets-sdk by running assets-cli setup-env.
  4. Install dependencies and run the server:
cd server
npm install
npm run start

License

MIT