bsehovac / the-cube Goto Github PK
View Code? Open in Web Editor NEWThe Cube - A Rubik's Cube Game
Home Page: https://bsehovac.github.io/the-cube/
The Cube - A Rubik's Cube Game
Home Page: https://bsehovac.github.io/the-cube/
Bsehovac, thanks for your work, I really liked it and I decided to personalize it a little for myself, which I share with everyone.
http://vvl99.narod.ru/MAGIC_CUBE/MAGIC_CUBE.html
Added sounds, hotkeys, viewing and writing formulas, additional game options.
Thank you for your hard work.
I tried to Use a texture map like this:
// Cube.js -> line 212
if (edge.name === "R") {
var texture = new THREE.TextureLoader().load('/assets/icons/android-chrome-192x192.png');
edge.material.map = texture;
}
Based on the visual outcome, it does indeed load something onto the piece, though I believe it could be done smarter. This way will require a background image per piece.
I really like this repo, and could use it for a party coming up this autumn.. If you have some thoughts on how to achieve the image thingy, I would appreciate you sharing..
maybe can auto slove base on cubejs
Could you please add a start_url
or a scope
to site.webmanifest
how to build the css?
It seems this project use three.js, but I look through the package.json and could not find the dependences.
I tried to build the project, however some warnings/errors appeared.
D:\code\node\the-cube>yarn build
yarn run v1.22.17
$ rollup -c rollup.config.build.js && cp upup.min.js export/ && cp upup.sw.min.js export/ && cp index.html export/ && cp -R assets export/
(!) You have passed an unrecognized option
Unknown output options: sourceMap. Allowed options: amd, assetFileNames, banner, chunkFileNames, compact, dir, dynamicImportFunction, entryFileNames, esModule, exports, extend, externalLiveBindings, file, footer, format, freeze, generatedCode, globals, hoistTransitiveImports, indent, inlineDynamicImports, interop, intro, manualChunks, minifyInternalExports, name, namespaceToStringTag, noConflict, outro, paths, plugins, preferConst, preserveModules, preserveModulesRoot, sanitizeFileName, sourcemap, sourcemapExcludeSources, sourcemapFile, sourcemapPathTransform, strict, systemNullSetters, validate
./src/js/Game.js โ ./assets/js/cube.js...
created ./assets/js/cube.js in 345ms
Done in 1.89s.
D:\code\node\the-cube>
Maybe the code need to refactor or update to use the modern build/bundler tools.
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.