Use the W, S, A, D, Q, E keys to rotate the cube. To perform moves on the cube, there are keys mapped to each single-row move. These are mapped together like so: U - Front O - Back I - Up K - Down J - Left L - Right By default, faces are turned clockwise. To turn a face counter-clockwise, hold SHIFT while pressing a face-turning key. In order to quickly scramble the cube, hold T for one second. A timer is shown on the top-left corner. Press SPACE to start, pause, or resume the timer. Hold SPACE for one second to reset the timer.
UPDATES: rev. 1 - changed CCW turn modifier from SPACE to SHIFT - added a (documented) scramble feature - added a simple timer - asmr pls KNOWN ISSUES: - if more than one face is facing towards the camera at an equal amount, it can cause some problems with performing moves - very slow - no fancy effects - badly programmed - inefficient - very slow I created (the first version of) this Rubik's cube in 5 days from scratch, in Scratch. It was hell to get the entire rendering system to work. I had to develop and implement a triangle rasterization algorithm and a 3D to 2D projection equation. All the stickers had to be indexed and all the faces each have an orientation dictating where the "first" sticker is on that face. Just to get the stickers and faces to render the way I wanted them to, the program needs to calculate at least at least 60 cross products, dot products, and determinants every frame. But in the end, it was worth it. As of now it is fairly unpolished and not very optimized. You may have noticed that the lag spikes when three faces are visible at once. I will address these perhaps sometime later. Credit to @MCAnimator3D for inspiring me to start using Scratch. This is all your fault. You did this to me.