@gg-web-engine/matter 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IGg2dPhysicsWorld, GgDebugPhysicsDrawer, Point2, Gg2dWorld } from '@gg-web-engine/core';
|
|
2
|
-
import { World } from 'matter-js';
|
|
2
|
+
import { Engine, World } from 'matter-js';
|
|
3
3
|
import { Gg2dBodyFactory } from './gg-2d-body-factory';
|
|
4
4
|
export declare class Gg2dPhysicsWorld implements IGg2dPhysicsWorld {
|
|
5
|
-
|
|
5
|
+
protected matterEngine: Engine | null;
|
|
6
6
|
get matterWorld(): World | null;
|
|
7
7
|
readonly factory: Gg2dBodyFactory;
|
|
8
8
|
private _gravity;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gg-web-engine/matter",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.04",
|
|
4
4
|
"description": "An attempt to create open source game engine for browser",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"homepage": "https://github.com/AndyGura/gg-web-engine#readme",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@types/matter-js": "^0.18.2",
|
|
31
|
-
"@gg-web-engine/core": "^0.0.
|
|
31
|
+
"@gg-web-engine/core": "^0.0.4",
|
|
32
32
|
"matter-js": "^0.18.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
package/tsconfig.json
CHANGED
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
"extends": "./../../tsconfig.base.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"baseUrl": "./src/",
|
|
5
|
-
"outDir": "./dist/"
|
|
6
|
-
"paths": {
|
|
7
|
-
"mini-signals": ["./node_modules/mini-signals/index.js"],
|
|
8
|
-
"path": ["./node_modules/path-browserify"],
|
|
9
|
-
"fs": ["./node_modules/fs-web"]
|
|
10
|
-
}
|
|
5
|
+
"outDir": "./dist/"
|
|
11
6
|
},
|
|
12
7
|
"include": ["*.ts", "**/*.ts"],
|
|
13
8
|
}
|