Wiki » History » Revision 4
Revision 3 (Distorted Admin, 03/21/2020 12:29 AM) → Revision 4/61 (Distorted Admin, 03/21/2020 12:31 AM)
h1. Overview
Magic Cube is an application which lets one play with Cubes and Pyraminxes of any size. It contains graphhics effects provided by the Distorted library.
Magic Cube is open source and released under the terms of the "GNU General Public License v2":http://www.gnu.org/licenses/old-licenses/gpl-2.0.html (GPL).
h1. Source code
<pre>
git clone http://distorted.org/git/distorted-library.git
git clone http://distorted.org/git/distorted-cube.git
</pre>
h1. Tutorials
h2. How to add a new Rubik Object
* Write a new class which extends RubikObject
* Write a new class which extends RubikObjectMovement
* add your new classes to the RubikObjectList enum
Currently implemented Objects: a Cube and a Pyraminx.
h2. How to add a new Transition Effect
If you would like to add, say, a new WIN effect (i.e. animation which happens when the Object gets solved) all you need to do is add a new class which extends org.distorted.effect.WinEffect.
The new effect will automatically become available in the Settings dialog. Rubik
Magic Cube is an application which lets one play with Cubes and Pyraminxes of any size. It contains graphhics effects provided by the Distorted library.
Magic Cube is open source and released under the terms of the "GNU General Public License v2":http://www.gnu.org/licenses/old-licenses/gpl-2.0.html (GPL).
h1. Source code
<pre>
git clone http://distorted.org/git/distorted-library.git
git clone http://distorted.org/git/distorted-cube.git
</pre>
h1. Tutorials
h2. How to add a new Rubik Object
* Write a new class which extends RubikObject
* Write a new class which extends RubikObjectMovement
* add your new classes to the RubikObjectList enum
Currently implemented Objects: a Cube and a Pyraminx.
h2. How to add a new Transition Effect
If you would like to add, say, a new WIN effect (i.e. animation which happens when the Object gets solved) all you need to do is add a new class which extends org.distorted.effect.WinEffect.
The new effect will automatically become available in the Settings dialog. Rubik