View Full Version : pool game
John_Clark
01-14-2008, 11:15 AM
I was wondering how to make a collion statement that would make pool balls go in a certian direction when hit a certian way but I dont know how anyone have some ideas?
Also does anyone know if I can program extra commands into alice like loop until or something like that and if so what programming language is it in? (I think someone said its in java but I cant remember)
charlieonfire
01-14-2008, 02:04 PM
mmm that sounds like a good idea but it sounds complicated too mmmm
why dont you like take some ideas from yahoo pool or something?
yee ;D
mmmmmm
iownan_iphone
01-14-2008, 02:18 PM
yeeeup i agree with the guy above me
snowman
01-14-2008, 02:29 PM
i agree
vivian
01-15-2008, 11:32 AM
IDK IM JUST A STUDENT LEARNING THIS AND IM BORED
AND I THINK ALICE IS BORING EVEN MYSPACE IS BETTER THAN THIS:confused:
IDK IM JUST A STUDENT LEARNING THIS AND IM BORED
AND I THINK ALICE IS BORING EVEN MYSPACE IS BETTER THAN THIS:confused:
We're sorry you feel that way. How would you suggest we improve Alice to make it more interesting?
BrokenX
01-15-2008, 05:28 PM
Gabe dont listen to that person, just another person who lives for myspace and thats the only reason he/she uses the computer...
On a side note im also learning Alice and its AMAZING! it basically attaches to anyone even if they dont have that much computer knowledge, me and my friends are hooked and cant wait to learn more! Good job alice team
rich0e0rick
01-19-2008, 07:03 PM
I agree with BROKENX, ALICE is a very good animating tool
Babysittah
01-22-2008, 12:18 AM
I agree with BROKENX, ALICE is a very good animating tool
Ya sound funny dude, your dog thinks it got its goal accomplished, for life?;)
John_Clark
01-23-2008, 11:17 AM
no offence guys but isnt this a how do i... not a i think this... which is why i posted here looking for help not oppinions about Alice and others peoples life...
DickBaldwin
01-23-2008, 11:50 AM
no offence guys but isnt this a how do i... not a i think this... which is why i posted here looking for help not oppinions about Alice and others peoples life...
Hello John,
I will attempt to get this thread back on track, although I don't have a solution to your problems. As I understand your question, you basically have two problems:
1. How to detect collisions between pool balls.
2. How to compute the angles at which the balls rebound following the collision.
Collision detection. Collision detection is probably the most frequent single topic that has been discussed in the Alice forum and no one seems to have a good solution for Alice. I suggest that rather than using the forum search capability, you go to Google and search for the following:
collision site:www.alice.org
This will expose about 180 postings on the topic of collision detection in Alice 2.0.
Hopefully one of them will be helpful.
Once you have done that and have seen the ideas provided by others, you should be able to develop a methodology for collision detection of pool balls. That shouldn't be too difficult given the special case that pool balls are all spheres of the same size. You may also want to do a Google search for "spherical collision"
Now for rebound angles - This is a very complex problem, which requires an in-depth knowledge of physics and trigonometry to solve. Assuming that there is no "english, a slang term known to pool players" on the ball, I'm confident that with significant effort, I could develop a set of equations based on a variety of parameters to approximate the answer. However, I don't have the time available to do that. Maybe if you search the web, someone has already done that independently of the programming language involved and you can port that solution into your Alice program.
Good luck in your search.
Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free programming tutorials: http://www.dickbaldwin.com/toc.htm
John_Clark
01-24-2008, 11:15 AM
Ok thanks alot for the help. If I do find a good way to do collion I will post it here for others to see as well.
I found a link to one of the forms that has a simple collision program if any one wants to look at it here http://www.alice.org/community/showthread.php?t=431
I'll reedit if I can figure out a solution for a more complex collision statement.