Rubik’s Cube

As part of the course Game Console Programming I developed a Rubik’s Cube for the PlayStation®Vita. Licensed PlayStation®Vita DevKits and the libraries provided by Sony have been used for this purpose.

The Rubik’s Cube can be controlled by either using the joypads and buttons or the touchpads. The back side touchpad is used to rotate the entire cube, while the touchscreen on the front side enables the rotation of individual cube layers. For this purpose the user has to perform a swipe in the corresponding direction on the desired layer. In addition, the cube can be reset if the user does not want to or is not able to solve it himself. The Rubik’s Cube is textured and illuminated according to a simple Lambert’s law based on the normals of the cube surfaces.