felixmariotto / art-salad Goto Github PK
View Code? Open in Web Editor NEWVR puzzle game on the web.
Home Page: https://artsalad.net
License: MIT License
VR puzzle game on the web.
Home Page: https://artsalad.net
License: MIT License
So when a puzzle is exited, PuzzleManager is told to clear everything. But if the model is gripped, it is in the controller space, not a child of puzzleManager.group. So controls
should have something like that :
events.on( 'exit-puzzle-request', e => {
controllers.forEach( c => /* remove gripped parts */ )
} );
For instance if a controller runs out of battery, three.js automatically removes it from the scene.
Since gripped parts are children of the controller, they get removed as well.
Whatever is done against this, it should happen here :
art-salad/src/controls/controls.js
Lines 284 to 295 in 8378c5f
Apparently advised by Oculus Browser accessibility requirements here.
To make the musem model darker, it's enough to add a onBeforeCompile callback here to tinker a bit with the musem material's fragment shader.
Same for the pieces material here, although I think they shouldn't be darkened in the same proportion as the musem model.
It would be nice to have sounds in the game, particularly when two puzzle parts get merged, and when a puzzle is finished.
A background ambient music would be nice too, or light crowd noises with lot of echo like in museums.
Here is where parts are merged :
art-salad/src/puzzles/puzzleManager.js
Lines 172 to 191 in 0ec2d75
A event should be fired here with the events module, and this event should be listened in a new audio
module.
A rotation of one quarter would be good, since the information is placed one quarter on the right during a puzzle.
Would improve accessibility for heavily disabled people.
It could happen here :
art-salad/src/controls/controls.js
Lines 112 to 128 in 8378c5f
I think the camera can't be rotated while updated by the xr session (?), so it would need to be placed a child in a dolly, so the dolly can be rotated instead.
When pieces are laid out in grid, it would be much better if they were also pivoted so that their front face look at the camera.
Currently half the pieces look away from the camera, that's not ideal :
It should happen here :
art-salad/src/puzzles/puzzleManager.js
Lines 102 to 110 in 0ec2d75
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.