Computer Science Canada

Pool Demo... Hopefuly I will finish this one.. (ya right =Þ

Author:  Homer_simpson [ Thu May 08, 2003 10:22 pm ]
Post subject:  Pool Demo... Hopefuly I will finish this one.. (ya right =Þ)

the name says it all...
just download the attachment...
hopefully i'll finish this one b4 the lazy ass thing gets over me again...

Author:  Catalyst [ Thu May 08, 2003 10:27 pm ]
Post subject: 

nice Very Happy
you should get the interball collisions goin
why is it called may screw?

Author:  Tony [ Thu May 08, 2003 10:27 pm ]
Post subject: 

well we do have a half-ass tutorial on programming pool... Maybe you can supply some actual working code for proper collision once you get your game to work

Author:  Catalyst [ Thu May 08, 2003 10:29 pm ]
Post subject: 

ive got a 2d vector class that might be of use to someone making a pool game

Author:  Homer_simpson [ Thu May 08, 2003 10:31 pm ]
Post subject: 

sweet....
Quote:
why is named may screw

cuz when i'm writing a program i saved many different files as i proceed cuz like suddenly a new idea comes to my mind so i save the old file and save the second file as may screw 1 or might get assed or something like that =)


and i'll make sure i check yer tutorial before i realse the final version...





Bwahahahhahahahhaaaaaaaaarrrr.... right now the idea of making a multiplayer pullgame just flashed into my mind so the next file i'll be uploading will probably be may screw 4 or 5 hehe

Author:  Homer_simpson [ Thu May 08, 2003 10:58 pm ]
Post subject: 

ok i got a little problem here Embarassed
I dunno how to play pool... =( i know that it's a 2 player game and u are supposed to put the balls in the holes and whoever finishes first wins... but i dunno when do players change turns which balls belong to which players and how many balls are there?!

Author:  Tony [ Thu May 08, 2003 11:00 pm ]
Post subject: 

go to www.yahoo.com and play in some yahoo pool... it has all the rules and stuff... you'll also get to see what you have to do

Author:  Homer_simpson [ Fri May 09, 2003 12:43 am ]
Post subject: 

ok here's another problem the friction and the ball speed is so very unrealistic....=Þ
I have marked the place that you should consider. the ball moves too fast when i give it a little power and move to slow when i give it alittle =(

Author:  Tony [ Fri May 09, 2003 1:09 am ]
Post subject: 

friction is relative to the speed of the moving object and thus must be a multiple as highspeed object produces more drag.

b.speed *= 0.8 works much better

though you need to have another if statment in there to stop the ball once it gets down to a decimal low enough... cuz otherwise it can keep on dividing for a long time.

Author:  Homer_simpson [ Fri May 09, 2003 1:52 am ]
Post subject: 

this is what i used
code:
if b.speed > .01 then
        b.speed *= .95
    else
        b.speed := 0
    end if

Author:  Homer_simpson [ Fri May 09, 2003 2:51 am ]
Post subject: 

ouk now.... is it just me or is there something terribly wrong with my ball collision detection....?

Author:  Homer_simpson [ Mon May 12, 2003 1:03 pm ]
Post subject: 

Almost done!!!!!!!!!!!

Author:  Catalyst [ Mon May 12, 2003 2:19 pm ]
Post subject: 

the collisions dont seem to work right Sad

also the ball dont colidde with eachother

Author:  Homer_simpson [ Mon May 12, 2003 3:21 pm ]
Post subject: 

that's y i said almost done...


: