Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Turing Pool
Index -> Programming, Turing -> Turing Submissions
Goto page 1, 2, 3  Next
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Catalyst




PostPosted: Tue May 27, 2003 9:58 pm   Post subject: Turing Pool

I was playing pool today (got the table run on me 5 five times Sad ) and got the idea to make a pool game

the collisions use a vector class (there appears to be a small glitch the balls occasionally orbit one and other) and are fairly accurate

i havent made the pockets yet (or the cue ball for that matter) but their addition is trivial, this is mostly a physics demo

the collision energy transfer is perfect, but there is friction on the table

click and drag; 's' to stop
Sponsor
Sponsor
Sponsor
sponsor
Catalyst




PostPosted: Tue May 27, 2003 10:00 pm   Post subject: (No subject)

Attached Very Happy


TuringPoolv0.1.zip
 Description:

Download
 Filename:  TuringPoolv0.1.zip
 Filesize:  272.38 KB
 Downloaded:  1647 Time(s)

Asok




PostPosted: Tue May 27, 2003 10:33 pm   Post subject: (No subject)

AWESOME!

Although I ran into a bug, it is possible to push the balls of of the screen.
Catalyst




PostPosted: Tue May 27, 2003 10:37 pm   Post subject: (No subject)

i know im gonna tighten the physics
the balls orbit each other due they are moving so fast they go inside one and other causing some interesting effects

im thinking of making it 3d (not the physics just the gfx)
using that planet engine it made for the balls (see it does have a use)
and using my regular 3d engine to render the table
Prince




PostPosted: Wed May 28, 2003 9:48 am   Post subject: (No subject)

catalyst i hope ur planning on going into computer graphics or sumthin cus it would b a waste of talent if u didnt
void




PostPosted: Wed May 28, 2003 12:28 pm   Post subject: (No subject)

dont worry catalyst...ill employ you...ill start you at $22/hr for my ultimate game company...it will be rival to Electronic Arts...i will call it......."The Game Company"..i kno...original eh?...i thought of it by myself...
Andy




PostPosted: Wed May 28, 2003 4:08 pm   Post subject: (No subject)

hey catalyst, ur from windsor eh? what school?
Catalyst




PostPosted: Wed May 28, 2003 4:14 pm   Post subject: (No subject)

not windsor exactly, tecumseh

Belle River High School
Sponsor
Sponsor
Sponsor
sponsor
Homer_simpson




PostPosted: Wed May 28, 2003 4:25 pm   Post subject: (No subject)

catalist yer pool seems to be having the same bug as mine had...:
when u hit a ball and balls collide some times they get stuck together becuz they go inside eachother...
Catalyst




PostPosted: Wed May 28, 2003 4:32 pm   Post subject: (No subject)

i know, ive fixed that now
kythoon




PostPosted: Wed May 28, 2003 4:56 pm   Post subject: (No subject)

very cool

its fun putting all the balls in ne corner then firing another at the all. Then watching them for flying! Laughing
Homer_simpson




PostPosted: Wed May 28, 2003 7:31 pm   Post subject: (No subject)

2 questions...
1.how did u do that?!
2. where'd get all these physic formula's? i had struggle with making my own!!!!!!!!!
Catalyst




PostPosted: Wed May 28, 2003 7:37 pm   Post subject: (No subject)

i used a vector class for the physics, heres the code i u want to see:

code:

    proc CollideBall (b : ^Ball)
        vHold (1) -> SetVector (x + vDir -> x, y + vDir -> y, b -> x + b -> vDir -> x, b -> y + b -> vDir -> y)
        vHold (1) -> Normalize
        vDir -> Copy (vHold (2))
        vHold (2) -> Sub (b -> vDir)
        vHold (1) -> Copy (vHold (3))
        vHold (1) -> Scale (vHold (3) -> Dot (vHold (2)), vHold (3) -> Dot (vHold (2)))
        vDir -> Sub (vHold (1))
        b -> vDir -> Add (vHold (1))
    end CollideBall


I found a basic explanation on the net, cant recall the site
JSBN




PostPosted: Wed May 28, 2003 7:40 pm   Post subject: (No subject)

very nice, but there is a probelm, there is no white ball.
Homer_simpson




PostPosted: Wed May 28, 2003 7:46 pm   Post subject: (No subject)

lol i gotto read yer vector class again to understand that code i've forgotten all the procedures Embarassed
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 3  [ 35 Posts ]
Goto page 1, 2, 3  Next
Jump to:   


Style:  
Search: