3D Rubik's Cube Interactive v2

3D Rubik's Cube Interactive v2

by Mathekalender_st1974

👁 7,793 ❤️ 503 ⭐ 395 🔄 28
Created: May 25, 2022 Last modified: Jun 1, 2022 Shared: May 25, 2022

Description

Icon found in iconarchive.com: Hand icon (http://icons8.com) All other objects are drawn by myself using ImageDraw object from Python's PIL library.

Instructions

This is an updated version of https://scratch.mit.edu/projects/650476175/ A competitive version is available at https://scratch.mit.edu/projects/699175090/ As many commenters mentioned that the original version is laggy, I tried to make it faster by replacing the clones with drawn objects. Then I do not need to sort the layers. However, the disadvantage is that the graphics became less clear, because the drawing pen converts all vector graphics objects into bitmaps. I also changed the order of colors to match the standard cube since 1988. Note: The code is probably quite a mess now. It contains lots of unnecessary things from the previous version. I just wanted a quick-and-dirty-solution to make it faster. Hope I succeeded. English: Use the mouse to move to the edges of the cube, then click on an arrow to turn the slice. Move the mouse to the center sticker on the front to see the hand icon. Click and hold the mouse button to drag the hand up, down, left or right to rotate the whole cube. (Now you can get the same rotation using the arrow keys.) Use the random button to scramble the cube. Deutsch: Bewege die Maus zu den Kanten des Würfels und klicke auf einen Pfeil, um eine Würfelebene zu drehen. Bewege die Maus auf die Mitte der Vorderseite, um ein Hand-Symbol zu erhalten. Bewege die Hand bei gedrückter Maustaste nach oben, unten, links oder rechts, um den gesamten Würfel zu drehen. (Die Drehungen können jetzt auch schneller mit den Pfeiltasten ausgeführt werden.)

Project Details

Visibility
Visible
Comments
Enabled