Computer Science Canada that volleyball game that dude wanted... |
Author: | Homer_simpson [ Sat Jan 10, 2004 4:26 pm ] | ||
Post subject: | that volleyball game that dude wanted... | ||
beat the comp... if u can
|
Author: | santabruzer [ Sat Jan 10, 2004 4:30 pm ] |
Post subject: | |
it's pretty buggy though.. for some reason i score like 2 points, and it totally removed them from the count.. plus you can go over the line.. or the net.. shouldn't be able to do that.. and why don't you do it with an arc like in the original version? But either than that.. it's perfect! |
Author: | AsianSensation [ Sat Jan 10, 2004 5:51 pm ] |
Post subject: | |
very very nice, me and SilverSprite was about to do something like that for one of our project, but we got side-tracked with raycasting, so here are bits for something we were "suppose" to do + bits |
Author: | Homer_simpson [ Sat Jan 10, 2004 7:01 pm ] |
Post subject: | |
santabruzer wrote: it's pretty buggy though.. for some reason i score like 2 points, and it totally removed them from the count.. plus you can go over the line.. or the net.. shouldn't be able to do that.. and why don't you do it with an arc like in the original version?
But either than that.. it's perfect! lol... i know and sometimes ball gets stuck on the net or goes thru it... it's easy to fix but i just got bored after making the ai... |
Author: | Andy [ Sat Jan 10, 2004 8:02 pm ] |
Post subject: | |
the ball went through the net... |
Author: | CITC [ Sat Jan 10, 2004 11:28 pm ] |
Post subject: | |
wahoo I'm that dude I really hate the way the ball bounces off the wall. It bounces as though it has a spin on it. I've been trying like mad to fix it, and have come up with a formula to use to figure out the proper angle of reflection. a (initial angle) ra (reflected angle) ra = 360 - (90 - (a - 180) ) <--- this works for the right wall, its slightly different for the left wall Thing is, in your program, projectile_1.angle (what I referred to as a) only changes its value upon contact with a player, the wall, or the net (ie. whenever the ResetP procedure is called). This means that if the ball travells in an arc then projectile_1.angle will be some angle up ( < 180 and > 0 ) but when it is on the last leg of the arc it is coming down yet projectile_1.angle is still some upwards angle. This means that the formula for the reflected angle off of a straight line is useless unless projectile_1.angle is accurate just before it hits the wall or the net. I can't find any way to get an accurate value of projectile_1.angle just before it hits the wall (or at any time when it isn't bouncing off of a player / wall / net). Get me that and I can make it bounce true. |
Author: | Homer_simpson [ Sun Jan 11, 2004 2:48 am ] |
Post subject: | |
no man... projectile.angle is the initial angle the projectile's thrown at... so here's what u gotto do on collision with wall... u reset the startx and start y to the collision position reser the velocity if u want and change the angle and set the time to 0... |
Author: | poly [ Sun Jan 11, 2004 11:13 am ] |
Post subject: | |
hey look I can go over to the opponents side (right threw the net).... That is very good and fun |
Author: | PaddyLong [ Sun Jan 11, 2004 1:04 pm ] |
Post subject: | |
wicked game |
Author: | Maverick [ Sun Jan 11, 2004 3:10 pm ] |
Post subject: | |
When the ball hits the comps ground sometimes he doesnt lose. The comp kinda sucks, but good for winoot! GJ Homer! |
Author: | CITC [ Sun Jan 11, 2004 5:33 pm ] |
Post subject: | |
I'm gunna try a few more things, I'll post in a few hours my thoughts. |
Author: | ruff_riders91 [ Mon Jan 12, 2004 10:20 am ] |
Post subject: | |
does the computer jump at all i haven't seen him jump |
Author: | shorthair [ Mon Jan 12, 2004 10:45 am ] |
Post subject: | |
All you have to do is lok through the code for the answer , i mean you are in grade 11 computer science |
Author: | McKenzie [ Mon Jan 12, 2004 11:36 am ] |
Post subject: | |
I always wondered what VB Mod stood for... VolleyBall Mod. Great game, lots of potential... imagine 2 players per side over the Internet perhaps??? P.S. Remind me to give Derek a high mark in EVERYTHING. |
Author: | Homer_simpson [ Mon Jan 12, 2004 4:35 pm ] |
Post subject: | |
8) ruff_riders91 wrote: does the computer jump at all i haven't seen him jump
nah he was doing good with out jumping, so i just left it be... and yes you can hit the ball off the ground... in fact u can hit it till it completely stops... |
Author: | Cervantes [ Mon Jan 12, 2004 5:38 pm ] |
Post subject: | |
gah I can't do it |
Author: | DanShadow [ Mon Jan 12, 2004 7:58 pm ] |
Post subject: | |
That is nice! I never let the opponent have the ball, I hopped over the net, grabbed the ball, and spiked it down by going on top of it, lol. But that is seriously a great game! |
Author: | agent_orange444 [ Thu Jan 22, 2004 6:35 pm ] |
Post subject: | |
Nice job on the game. Bye the way the correct name is slime volleyball. It does need a bit of minor tweaking though. |
Author: | kalin [ Thu Jan 22, 2004 6:47 pm ] |
Post subject: | |
cool. I like it |
Author: | Cervantes [ Thu Jan 22, 2004 7:06 pm ] |
Post subject: | |
Homer the thing is you can do what you said about changing the velocity and resetting startx and starty and all but you can't change the angle to what it should be because in order to do that, you have to know its current angle (right before it hits the wall). |
Author: | Cervantes [ Thu Jan 22, 2004 8:03 pm ] | ||
Post subject: | |||
ahah I did it! well it still bounces slightly wierd... maybe I can iron that out... but here's my version of Homer's game
Cheers |
Author: | Homer_simpson [ Fri Jan 23, 2004 1:23 am ] |
Post subject: | |
Cervantes wrote: Homer the thing is you can do what you said about changing the velocity and resetting startx and starty and all but you can't change the angle to what it should be because in order to do that, you have to know its current angle (right before it hits the wall).
well u can get the angle on collision by: calculating the tangent to the curve at the last second of the collision... |
Author: | Cervantes [ Fri Jan 23, 2004 1:39 pm ] |
Post subject: | |
yeah that's basically what I did.. only using arctand gives me a result with 90 being up and -90 being down... slightly different, still works though. |
Author: | valor [ Wed Mar 24, 2004 10:38 pm ] |
Post subject: | |
cool. it has a few glitches in it that could probably be fixed if you put time into it but it is pretty nice umm im just wondering what does the score go up to? because i got like around 40 |
Author: | WhatAmIDoing [ Thu Mar 25, 2004 12:24 pm ] |
Post subject: | |
Cervantes what version of turing did you use because when i tried to run it i got Distance is not in the export list of math. |
Author: | shorthair [ Thu Mar 25, 2004 4:25 pm ] |
Post subject: | |
leave old topic old , go ahead and look at em and get the files , BUT dont post in them , there are enoug hactive posts to post in , its irritation to see old posts come back up |
Author: | Cervantes [ Thu Mar 25, 2004 5:06 pm ] |
Post subject: | |
indeed two months old I'm using Turing 4.0.5. You get that error because Math.Distance is not in anything before 4.0.3. You can fix it easily enough by making a variable called distance and using the distance formula. |
Author: | the_short1 [ Fri Mar 26, 2004 6:00 pm ] |
Post subject: | |
the first thing everyone should do in a program is do: View.Set ("graphics:size;size,title:some name,nobuttonbar") <<i always see that dam button bar and i hate it... ERR.... nice game tho.... needs a little polishing... but its cool...... mind you.... if i want a wicked AI ill play that onling versionl.... i found urs a little too ez... |
Author: | valor [ Thu Apr 01, 2004 9:55 pm ] |
Post subject: | |
thats pretty sweet. shouldnt be able to go through the net though |
Author: | beard0 [ Fri May 28, 2004 1:30 pm ] | ||
Post subject: | |||
for earlier versions of turing:
put that in at the begining and replace all occurences of Math.Distance with MathDistance |
Author: | guruguru [ Fri May 28, 2004 3:41 pm ] |
Post subject: | |
Ahh! This topic is like a jinx! Twice its been reactivated 2 monrths after the last post. Beard0, thank you, but even after reading not to bring up old topics in this post, you brought it up . Anyways... the distance formula will be useful for many people. Maybe post it in Turing Help... that reminds me... why should they're not be a sticky in this forum with commonly used formuls in it? Eh? |
Author: | Delta [ Sat May 29, 2004 9:26 pm ] |
Post subject: | |
Sorry bout this if anyone has already pointed these out but ya... I have no time to read everything so here. The following needs fixing or should be added : - Balls bounces upward off both the net and the wall - Ball should drop once it hits the net - Players can cross the net and continue to hit the ball - ball can bounce forever on player (should get lower and lower each bounce) Otherwise I love it Nice job |