Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Nov 8, 2023
1 parent 0f11ceb commit 518b93f
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 50 deletions.
2 changes: 1 addition & 1 deletion examples/dojo-starter
26 changes: 15 additions & 11 deletions examples/react-phaser-example/src/phaser/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
import { createPhaserEngine } from "@latticexyz/phaserx";
import { NetworkLayer } from '../dojo/createNetworkLayer';
import { registerSystems } from './systems/registerSystems';
import { namespaceWorld} from '@dojoengine/recs';
import { NetworkLayer } from "../dojo/createNetworkLayer";
import { registerSystems } from "./systems/registerSystems";
import { namespaceWorld } from "@dojoengine/recs";

export type PhaserLayer = Awaited<ReturnType<typeof createPhaserLayer>>;
type PhaserEngineConfig = Parameters<typeof createPhaserEngine>[0];

export const createPhaserLayer = async (networkLayer: NetworkLayer, phaserConfig: PhaserEngineConfig) => {

export const createPhaserLayer = async (
networkLayer: NetworkLayer,
phaserConfig: PhaserEngineConfig
) => {
const world = namespaceWorld(networkLayer.world, "phaser");
const { game, scenes, dispose: disposePhaser } = await createPhaserEngine(phaserConfig);
const {
game,
scenes,
dispose: disposePhaser,
} = await createPhaserEngine(phaserConfig);
world.registerDisposer(disposePhaser);

const { camera } = scenes.Main;
Expand All @@ -25,11 +31,9 @@ export const createPhaserLayer = async (networkLayer: NetworkLayer, phaserConfig
game,
scenes,
components,
}
};

registerSystems(layer);

return layer
}


return layer;
};
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dojoengine/core",
"version": "0.1.36",
"version": "0.1.37",
"description": "Dojo engine core providers and types",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-burner/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dojoengine/create-burner",
"version": "0.1.36",
"version": "0.1.37",
"description": "Useful hooks and functions to create a Starknet burner wallet",
"source": "src/index.ts",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dojoengine/react",
"version": "0.1.36",
"version": "0.1.37",
"description": "Useful React hooks for Starknet",
"source": "src/index.ts",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/torii-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dojoengine/torii-client",
"version": "0.1.36",
"version": "0.1.37",
"description": "",
"main": "dist/index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/torii-wasm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dojoengine/torii-wasm",
"version": "0.1.36",
"version": "0.1.37",
"description": "",
"main": "dist/index.js",
"type": "module",
Expand Down
66 changes: 33 additions & 33 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
{
"name": "@dojoengine/utils",
"version": "0.1.36",
"description": "Helpful Dojo Utils",
"type": "module",
"scripts": {
"build": "tsup",
"test": "jest"
},
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
"name": "@dojoengine/utils",
"version": "0.1.37",
"description": "Helpful Dojo Utils",
"type": "module",
"scripts": {
"build": "tsup",
"test": "jest"
},
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"author": "Loaf",
"license": "MIT",
"main": "dist/index.js",
"devDependencies": {
"@types/elliptic": "^6.4.14",
"@types/jest": "^29.5.0",
"@types/mocha": "^10.0.1",
"bun-types": "^1.0.1",
"fetch-mock": "^9.11.0",
"jest": "^29.5.0",
"ts-jest": "^29.1.0",
"typescript": "^5.0.3"
},
"dependencies": {
"@dojoengine/recs": "0.1.35",
"@latticexyz/utils": "^2.0.0-next.11",
"mathjs": "^12.0.0",
"micro-starknet": "^0.2.3",
"starknet": "^5.19.5"
}
},
"author": "Loaf",
"license": "MIT",
"main": "dist/index.js",
"devDependencies": {
"@types/elliptic": "^6.4.14",
"@types/jest": "^29.5.0",
"@types/mocha": "^10.0.1",
"bun-types": "^1.0.1",
"fetch-mock": "^9.11.0",
"jest": "^29.5.0",
"ts-jest": "^29.1.0",
"typescript": "^5.0.3"
},
"dependencies": {
"@dojoengine/recs": "0.1.35",
"@latticexyz/utils": "^2.0.0-next.11",
"mathjs": "^12.0.0",
"micro-starknet": "^0.2.3",
"starknet": "^5.19.5"
}
}

0 comments on commit 518b93f

Please sign in to comment.