Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / A simple Rubiks Cube program with source

Author
Message
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 10th Dec 2018 01:10 Edited at: 11th Dec 2018 18:26
Rubiks Cube Program Creates All its own media


Source


Now uses correct color mapping and you just click the buttons on screen to rotate
the pieces. I may add a shatter sending all pieces in all directions once its solved.
And fixed a problem where one of the movements would rotate piece the wrong
way and added a solve from beginning



Something to add
1>If I do a solver it will use the method of rotating a row rotate next face row etc
until its solves itself if I can get my head around how that would work
fubar
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 12th Dec 2018 19:25
@ fubarpk Hi friend . You almost got it, although it behaves strangely . The colors change completely in the different rotations . I remember when I could make one side easily . What we need now is the posibility of z rotation . Sometimes we get stuck because we can not turn on the z axis . I will keep an eye in this thread , I like it

Cheers.
I'm not a grumpy grandpa
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 13th Dec 2018 00:14 Edited at: 13th Dec 2018 00:45
Thanks Chafari for checking

I rewrote the routines for movements and now use fix object
and then get the global world angles of x y and z then unfix
them and rotate to the world angles received,

heres what i have so far it now has a shuffle and solve routine that reverses
the shuffles moves with animation
fubar
puzzler2018
User Banned
Posted: 13th Dec 2018 10:01
Niiiicccceeee work

chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 13th Dec 2018 17:48
Now rotation looks nicer , more professional , but somehow somthing strange as if rotation are not complete from 90º to 90º . Colours sometimes change colour at the ene of rotation...you neraly got it !!

Cheers.
I'm not a grumpy grandpa
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 14th Dec 2018 06:50
Thanks Chafari not sure why the rotations are off nor why some faces just being wrong but for now il leave it in my TODO list
fubar

Login to post a reply

Server time is: 2024-03-29 15:54:31
Your offset time is: 2024-03-29 15:54:31