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.

Code Snippets / [DBP] Marble rolling game - no media

Author
Message
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 19th Sep 2007 11:26 Edited at: 19th Sep 2007 11:31


Just though I'd share this - it was my winning entry for a recent DBPro coding challenge. It has some useful features if your interested in seeing how this sort of game can be accomplished without using external physics or rotation plugins, and could be used as a foundation for something more. It's also quite fun to play - but be warned, it's quite hard!

Thanks to Lower Logic for his excellent global rotation functions.

____________________________________________________________________


Aim: Get the ball onto the purple platform

Controls:

Arrowkeys to tilt the table
Spacekey to nudge, just incase the ball gets stuck.

Hint: Start at the bottom left, and follow the green path!

If anyone wants to use this as the basis for their own game, then feel free.



Attachments

Login to view attachments
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 21st Sep 2007 11:35
Awesome! If it was controlled by the mouse it would be better though.

HeavyAmp
18
Years of Service
User Offline
Joined: 25th Oct 2006
Location: Castle in the Sky!
Posted: 21st Sep 2007 17:59
Looks really good,I like the green mesh background. Its quite tricky getting the ball where you want to go but fun.

Better to be dead, than to live your life afraid.
Kaitia
17
Years of Service
User Offline
Joined: 8th Sep 2007
Location:
Posted: 21st Sep 2007 18:48
Nice piece of programming!

''To program or not to program that is the question''
Silicon Zombie
17
Years of Service
User Offline
Joined: 7th Oct 2007
Location: UK
Posted: 10th Oct 2007 15:59
Yeah thanks for sharing. Everytime I look at someone elses code on these forums I end up learning something new.

Cheers.

Login to post a reply

Server time is: 2024-11-22 19:11:06
Your offset time is: 2024-11-22 19:11:06