https://github.com/yanm1ng/react-aframe-game
🅰️ Simple AR game base on React && Aframe.js
https://github.com/yanm1ng/react-aframe-game
aframe opencv react
Last synced: about 2 months ago
JSON representation
🅰️ Simple AR game base on React && Aframe.js
- Host: GitHub
- URL: https://github.com/yanm1ng/react-aframe-game
- Owner: yanm1ng
- License: mit
- Created: 2018-05-07T13:02:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-19T00:30:12.000Z (about 8 years ago)
- Last Synced: 2025-01-17T07:42:14.580Z (over 1 year ago)
- Topics: aframe, opencv, react
- Language: JavaScript
- Homepage: https://yanm1ng.github.io/react-aframe-game
- Size: 13.5 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## aframe-react-game
Building virtual reality experiences with
[A-Frame](https://aframe.io) and React with
[aframe-react](https://github.com/ngokevin/aframe-react).
### Installation
To get started:
```bash
npm install
npm start
```
### Notice
#### build fails to minify
In order to support minify ES6 code, replace `webpack.optimize.UglifyJsPlugin` in `node_modules/react-scripts/config/webpack.config.prod.js` Line:294
```js
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
// ...
new UglifyJsPlugin({
uglifyOptions: {
compress: {
warnings: false,
comparisons: false,
},
mangle: {
safari10: true,
},
output: {
comments: false,
ascii_only: true,
}
},
sourceMap: shouldUseSourceMap,
})
```