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

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




PostPosted: Fri Jan 14, 2005 11:35 am   Post subject: Air Hockey

My grade 10 final project. I know the physics could be better. Also there could be music but I couldn't upload it. Any help or changes would be awesome.
Sponsor
Sponsor
Sponsor
sponsor
zylum




PostPosted: Sat Jan 15, 2005 11:36 am   Post subject: (No subject)

looks very well done and clean... a few problems though. the balls dont bounce off each other properly, and the time goes by way to slow... it says each round lasts a minute but its more like 3. try using something like:

code:
var t1 : int := 10000
var t2 : int

%other code here

t2 := Time.Elapsed
loop
    exit when t1 - (Time.Elapsed - t2) <= 0
    locate (1, 1)
    put (t1 - (Time.Elapsed - t2)) / 1000
end loop
cls
put 0


also having to refresh everytime someone scores is annoying...

other than those 3 things, its very well done
Tony




PostPosted: Sat Jan 15, 2005 4:06 pm   Post subject: (No subject)

how about this for a project? Wink

Posted Image, might have been reduced in size. Click Image to view fullscreen.
zylum




PostPosted: Sat Jan 15, 2005 7:00 pm   Post subject: (No subject)

that's cool though it starts to suck around 2 minutes into the video.
Tony




PostPosted: Sat Jan 15, 2005 11:49 pm   Post subject: (No subject)

yeah, it's not very good... the logic bottlenecks in webcam's capture speed and a bunch of other places...

though it's cool anyways Wink
ClayWall




PostPosted: Mon Jan 17, 2005 9:48 am   Post subject: (No subject)

Here's Air Hockey again with faster time. I didn't do it the way you suggested zelum because I couldn't figure out how to work it in, but change it to work that way and repost it if you want.


Air Hockey.t
 Description:
Grade 10 Final Project

Download
 Filename:  Air Hockey.t
 Filesize:  6.03 KB
 Downloaded:  228 Time(s)

zomg




PostPosted: Fri Jan 21, 2005 1:59 pm   Post subject: (No subject)

wow i like it! nice program good colision detection, and runs smooth as a whistle(lack of a better term)
ClayWall




PostPosted: Tue Jan 25, 2005 2:31 pm   Post subject: (No subject)

Hey thanks, I'll keep working on it to try and make it even better. If there's any ideas I'd like to know.
Sponsor
Sponsor
Sponsor
sponsor
ste_louis26




PostPosted: Fri Jan 28, 2005 3:45 pm   Post subject: (No subject)

awsome game but can u actualy win? In the future try to tone down the AI - its invincible!
basketball4ever




PostPosted: Fri Jan 28, 2005 3:58 pm   Post subject: (No subject)

i found the game really good Smile
although... u can only go at a certain angle either towards the top or towards the bottom when hitting the puck... this lowers nearly all chances of scoring... theres like only 2 spots u can actually hit it right... into a wall and in... i think the game should be faster.... that makes it easier to score, harder to defend
ssr




PostPosted: Mon Jan 31, 2005 8:52 pm   Post subject: (No subject)

I like teh game
GJ
but use whatdotcolor to detect collusions instead
'cause sometimes, the puck turns before teh computer or me even hit it.
But ya nice game
btw
just our of curiousity, what did u get on teh project?
Cervantes




PostPosted: Wed Feb 02, 2005 8:54 am   Post subject: (No subject)

ssr wrote:
but use whatdotcolor to detect collusions instead

No! Using the radii of the two circles is the way to go.
Bacchus




PostPosted: Wed Feb 02, 2005 11:42 am   Post subject: (No subject)

im guessing the puck turns b4 it hits u or the comp bc if the speed of it is going to fast, when you add the vx and the vy to the puck it would have gone thru the player, so it changes it b4 that happens
ssr




PostPosted: Wed Feb 02, 2005 12:05 pm   Post subject: (No subject)

I like whatdotcolor better 'cause its easier..
I dont think its the speed of the puck, 'cause I changed the speed, and it still happens sometimes
Bacchus




PostPosted: Wed Feb 02, 2005 12:23 pm   Post subject: (No subject)

ya whatdotcolor may be easier, but not as good. using ditance you can find out if they hit at an angle, its kinda hard to do a permimeter check with watdotcolor
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 2  [ 17 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: