Videos and reviews

Example 5 – animated rubik’s

This example shows simple implementation of rubik’s cube with animated rotations. Direction of rotation is determined by inclination of tapped side. SolveDir function reads accelerometer data and compares them with threshold “ACC_THRESHOLD” for direction. Also each move is stored into variable, so the progress is never lost. Example of correct use of ICON() is demonstrated as well. Note that definition of icon[] must be placed in global namespace!