Skip to content

Commit

Permalink
Merge pull request #28 from WonderlandEngine/fix/example-project
Browse files Browse the repository at this point in the history
DRAFT: Fix example project
  • Loading branch information
Squareys authored Sep 17, 2024
2 parents 073ad74 + e093876 commit 2b3f127
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
17 changes: 11 additions & 6 deletions example/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,23 @@ import {loadRuntime} from '@wonderlandengine/api';
import * as API from '@wonderlandengine/api'; // Deprecated: Backward compatibility.

/* wle:auto-constants:start */
const RuntimeOptions = {
physx: false,
loader: false,
xrFramebufferScaleFactor: 1,
canvas: 'canvas',
};
const Constants = {
ProjectName: 'SpatialAudioLab',
RuntimeBaseName: 'WonderlandRuntime',
WebXRRequiredFeatures: ['local',],
WebXROptionalFeatures: ['local','local-floor','hand-tracking','hit-test',],
};
const RuntimeOptions = {
physx: false,
loader: false,
xrFramebufferScaleFactor: 1,
xrOfferSession: {
mode: 'auto',
features: Constants.WebXRRequiredFeatures,
optionalFeatures: Constants.WebXROptionalFeatures,
},
canvas: 'canvas',
};
/* wle:auto-constants:end */

const engine = await loadRuntime(Constants.RuntimeBaseName, RuntimeOptions);
Expand Down
10 changes: 5 additions & 5 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"wonderland-engine"
],
"dependencies": {
"@wonderlandengine/api": "^1.0.0",
"@wonderlandengine/api": ">=1.2.0 <1.3.0",
"@wonderlandengine/components": "^1.0.3",
"@wonderlandengine/spatial-audio": "file:../",
"gl-matrix": "^3.4.3"
Expand Down

0 comments on commit 2b3f127

Please sign in to comment.