Revision 233566d8
Added by Leszek Koltunski over 2 years ago
| src/main/java/org/distorted/bandaged/BandagedCreatorRenderer.java | ||
|---|---|---|
| 41 | 41 |
import org.distorted.library.type.Static4D; |
| 42 | 42 |
import org.distorted.objectlib.bandaged.BandagedObject; |
| 43 | 43 |
//import org.distorted.objectlib.bandaged.BandagedObjectCuboid; |
| 44 |
import org.distorted.objectlib.bandaged.BandagedObjectCuboid; |
|
| 44 | 45 |
import org.distorted.objectlib.bandaged.BandagedObjectPyraminx; |
| 45 | 46 |
import org.distorted.objectlib.json.JsonWriter; |
| 46 | 47 |
import org.distorted.objectlib.main.TwistyObject; |
| ... | ... | |
| 99 | 100 |
mScreen = new DistortedScreen(); |
| 100 | 101 |
mScreen.glClearColor(BRIGHTNESS, BRIGHTNESS, BRIGHTNESS, 1.0f); |
| 101 | 102 |
mScale = new Static3D(1,1,1); |
| 102 |
mObject = new BandagedObjectPyraminx(mScreen);
|
|
| 103 |
mObject = new BandagedObjectCuboid(mScreen);
|
|
| 103 | 104 |
|
| 104 | 105 |
mInitRatio = mObject.getScreenRatio(); |
| 105 | 106 |
mObjectScreenRatio= mInitRatio; |
| src/main/java/org/distorted/bandaged/BandagedPlayScreen.java | ||
|---|---|---|
| 93 | 93 |
public void onClick(View v) |
| 94 | 94 |
{
|
| 95 | 95 |
ObjectControl control = act.getControl(); |
| 96 |
int duration = BaseEffect.Type.FAST_SCRAMBLE.getDuration(); |
|
| 97 |
control.fastScrambleObject(duration,NUM_SCRAMBLES); |
|
| 96 |
//int duration = BaseEffect.Type.FAST_SCRAMBLE.getDuration(); |
|
| 97 |
//control.fastScrambleObject(duration,NUM_SCRAMBLES); |
|
| 98 |
control.scrambleObject(30); |
|
| 98 | 99 |
mMovesController.clearMoves(act); |
| 99 | 100 |
} |
| 100 | 101 |
}); |
Also available in: Unified diff
Progress with scrambling a bandaged pyraminx.