- Node.js (for sure)
- Yarn installed globally (
npm i -g yarn
) - Metacraft CLI installed globally (
npm i -g @metacraft/cli
)
- Development: run
metacraft
under project root - Build:
metacraft bundle
(CI will run/deploy using this script, normally we don't use this command)
- For simulator connect (
engine
repo): change game/assets/scripts/network/util.ts, line 5 websocket url point to localhost
- Install Cocos Dashboard
- Install Cocos Creator version
3.8.3
or newer - Install deps for Game by
yarn install
undergame
folder - Open
game
folder with Cocos creator - Configure network endpoint under
./game/assets/scripts/network/util.ts
(line 6), either use remove endpoint or local endpoint at Card Engine
- Build game to
assets/murg
, we are currently usingweb-mobile
build options - Prepare .env file for sst deployment with format
.env.{stage}
, used by bundling and runtime. See.env.example