The cube moves around by rotating forward on its leading edge. At the moment an arrow key is pressed, the cube de-parents itself from its "holder" while the holder orients to the new tile which the cube will occupy. Then the cube re-parents itself and a local animation is played of the holder rotating 90 degrees at its corner (and bouncing a little). The player may queue up a string of moves by pressing the keys really fast. The cube waits until the animation is far enough along before going on to the next move, but tries to get through the queue faster by speeding up the animation, as you can see.
The cube moves around by rotating forward on its leading edge. At the moment an arrow key is pressed, the cube de-parents itself from its "holder" while the holder orients to the new tile which the cube will occupy. Then the cube re-parents itself and a local animation is played of the holder rotating 90 degrees at its corner (and bouncing a little). The player may queue up a string of moves by pressing the keys really fast. The cube waits until the animation is far enough along before going on to the next move, but tries to get through the queue faster by speeding up the animation, as you can see.

Comments
Post a Comment