Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, SBGuy, TipmyPip, ozgur), 923 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Rubik's Cube #316614
03/25/10 14:58
03/25/10 14:58
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline OP
Expert
Rei_Ayanami  Offline OP
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Hello all grin

I want to present you, my work I did for school tongue.


It is a Rubik's Cube game. The gameplay is already working, but I am still at adding features like the Skin Editor and the loading/saving system. I know that this is a very bpring game/idea - but my teacher didn't want to believe me that I could program that tongue

At the moment I am waiting for a resonse for this. The skin Editor itself already works, but since it is useless to create a skin-pack without being able to apply it is really bad...

I am planning to add some effects, and an "Action-Mode" where sometimes the screen gets black-white or the camera starts turning without the player doing something.

For sure I am not a graphical designer, so the graphics are really bad ...

I also have to admit that I never reached the end of the cube, so that i could only test the end when I set the number of turnings of the npc to 2 tongue

I also gave some test versions to my friends who really helped me to improve it laugh

So now, some screens:




Done:
# building the cube dynamicly
# good camera movement (based on what my friends said)
# basic turning
# npc that turns the cube
# menu that works with mouse and keyboard
# high- and low-res cube
# loading screen with loading %


Doing at the moment:
# adding a good skin editor
# adding effects
# adding "action mode"


ToDo:
# implenting Helping system with algrythm for the shortest way
# adding better graphics
# somethings that motivate the player



Thanks for reading laugh


Download:



Last edited by Rei_Ayanami; 03/27/10 13:00.
Re: Rubik's Cube [Re: Rei_Ayanami] #316621
03/25/10 16:58
03/25/10 16:58
Joined: Nov 2009
Posts: 43
Turkiye
M
Machera Offline
Newbie
Machera  Offline
Newbie
M

Joined: Nov 2009
Posts: 43
Turkiye
how about rubik's 360? i think its a good game idea but script mechanism will be harder.

Re: Rubik's Cube [Re: Machera] #316627
03/25/10 17:38
03/25/10 17:38
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline OP
Expert
Rei_Ayanami  Offline OP
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
hm...
i don't want to change the main thing, because it is only a school project wink

Re: Rubik's Cube [Re: Machera] #316629
03/25/10 17:46
03/25/10 17:46
Joined: Dec 2008
Posts: 1,660
North America
Redeemer Offline
Serious User
Redeemer  Offline
Serious User

Joined: Dec 2008
Posts: 1,660
North America
Quote:
I know that this is a very boring game/idea - but my teacher didn't want to believe me that I could program that

Hehe; prove your teacher wrong. Someday us programmers will rule the world! tongue


Eats commas for breakfast.

Play Barony: Cursed Edition!
Re: Rubik's Cube [Re: Redeemer] #316647
03/25/10 19:29
03/25/10 19:29
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Where is the download link? I wanna try it laugh


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Rubik's Cube [Re: Superku] #316680
03/25/10 20:58
03/25/10 20:58
Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
Captain_Kiyaku Offline

Dichotomic
Captain_Kiyaku  Offline

Dichotomic

Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
You should add an option to use different cube sizes grin It might be easy if your script is very dynamically in detecting the finished cube. So the player can play a 3x3, 4x4, 5x5, ... cube.


My Blog

"Tag und Nacht schrei ich mich heiser,
Wind weht alle Worte fort,
Tag und Nacht schrei ich mein Krähenwort!"

Subway To Sally - Krähenkönig
Re: Rubik's Cube [Re: Captain_Kiyaku] #316683
03/25/10 21:07
03/25/10 21:07
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
implementing an automatic solve-algorythm is a tough job.
I would be really impressed if you could realise that.

(a solver is needed anyhow for a hint system)

Re: Rubik's Cube [Re: Damocles_] #316723
03/26/10 06:26
03/26/10 06:26
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline OP
Expert
Rei_Ayanami  Offline OP
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Good morning laugh

@Superku: i will change some more small things and than i will Upload it for you wink

@Captain_Kiyaku: thanks for that idea laugh if i have enough time this weekend i will implent this laugh - but i have to admit that i have another, more important project together with Spike tongue

@Damocles:As i said , i am trying to add this grin the Problem is that i haven't Found a real algorythm yet... If i can't find One the Next days i am trying it another way (i mean that things where they explain how to get one Block to another position )


For the Next hours i am in school, so i can just search for alghorythm in the web and think about the 5x5,6x6,... thing wink

Best regards,
rei

Re: Rubik's Cube [Re: Rei_Ayanami] #316737
03/26/10 09:43
03/26/10 09:43
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
I was programming a puzzle game _editor_ with cubes, and, there I used a different entity for each _side_ of a cube.
Maybe, this helps you to find a way to identify which color looks to which side.

Nonetheless, this is not a trivial task. I wish you good concepts to get this managed!

Re: Rubik's Cube [Re: Pappenheimer] #316740
03/26/10 10:04
03/26/10 10:04
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
Here some Sourcode and Example sites:

http://www.math.ucf.edu/~reid/Rubik/optimal_solver.html

http://www.wrongway.org/cube/solve.html

http://en.wikibooks.org/wiki/How_to_Solve_the_Rubik%27s_Cube


Developing an Algorythm is a decent task.

Dont be disappointed if you cant get it to work, it
really is a big chunk of development required.

The simplest would be to develope a straigt forward
brute-force recursive algorythm. (its very slow but rather simple)
(testing out all possible moves up to a certain depth of
turns, and returning the chain of moves that
solves the cube at a certain point)

If you need a "demo" algorythm, and just want to
solve the cube no matter what,
just record all previous moves (all to the scramble the cube,
and all following player moves)
Then move them backwards. This way you always solve
the cube, without any AI required....

Last edited by Damocles_; 03/26/10 10:14.
Page 1 of 3 1 2 3

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1