Example of decentraland scene using a decentraland library
It uses a modified version of build-ecs to build and import the assets. It does not work with @next or @latest yet.
For the demonstration, all compiled assets are committed to this repository. (bin folder)
The easiest way to do it is by NPM, or local linking.
I already published this library physics-lib to test the whole integration.
- In a blank scene, run
npm install physics-lib --save-bundlewe use --save-bundle or -B to later tell the compiler to bundle this dependency. This is also a hack, but the intention of our usage is the intended by NPM. We are actually bundling the library.{ // package.json "dependencies": { "physics-lib": "^1.0.0" }, "bundleDependencies": [ "physics-lib" ] }
- Run
dcl startonce. It will update the tsconfig.json to include:"paths": { "*": [ "node_modules/physics-lib/dist/physics-lib.d.ts" ] }, "baseUrl": "."

