Computer Science Canada pong, hope you like, it has some music in it too!! |
Author: | - IzAk - [ Tue Jun 13, 2006 1:19 pm ] | ||
Post subject: | pong, hope you like, it has some music in it too!! | ||
|
Author: | BenLi [ Thu Jun 15, 2006 8:45 pm ] |
Post subject: | |
you know that think in breakout where if you hit the ball on the side of the paddle it changes the angle and speeds it up? that'd be a cool feature on this and nice music? composer in the making? |
Author: | Reality Check [ Thu Jun 15, 2006 9:04 pm ] |
Post subject: | |
Nice Program. I really like the music. Also, doing what the above poster suggested would be great using your code. It shouldn't be too hard to implement. Making different coloured tiles is obviously simple and using whatdotcolour, you can drop a power up item according to which box was hit. I'd give you bits if I knew how... |
Author: | Clayton [ Thu Jun 15, 2006 9:16 pm ] |
Post subject: | |
/me starts to cry why are you using processes???? pong certainly doesnt need them, the only real use they have in your program is for your music but thats it. also, look into some optimization in there |
Author: | xtremehacker [ Thu Sep 07, 2006 6:03 pm ] |
Post subject: | |
cool game it would be better though if u could move the paddle with the mouse and not just the arrow keys. |
Author: | [Gandalf] [ Thu Sep 07, 2006 6:19 pm ] |
Post subject: | |
Please stop posting in dead/old topics. This is called necro posting and is against [The Rules] which you should definately read before posting further. |
Author: | Foundation [ Mon Sep 18, 2006 8:23 pm ] |
Post subject: | |
Is it still necro posting after someone already necro posted for it to get up again? I made a pong game, it required 270 some lines, and I have no idea what he did in his pong game. ex. fork? When I played it it's a good game though. Maybe I will understand more as I learn more turing. Thanks for the game! |
Author: | [Gandalf] [ Mon Sep 18, 2006 10:38 pm ] |
Post subject: | |
Only if you're necro posting the necro post. Either way, you should only be posting if you really have something useful to contribute. These things aren't set in stone, but it's good to generally follow the guidelines. fork is related to processes, which you most probably won't be needing in your Turing programs. Do a search for "process" in the Turing sections and you'll see nothing but "DONT USE PROCESSES!!11!!!". So at best read the tutorials on them and follow that advice. |
Author: | Foundation [ Tue Sep 19, 2006 7:44 am ] |
Post subject: | |
Okay, thanks for the explaination. I was wondering how you would whatdotcolour for pong. How would you use whatdotcolour as a collision detector? You would need n ifs for n whatdotcolour (x,y)? That would take a long time... |
Author: | [Gandalf] [ Tue Sep 19, 2006 2:33 pm ] | ||||
Post subject: | |||||
The search button is there to help you for such questions which have most likely been asked hundreds of times. A very simple pseudo-code-ish example:
It should be noted that this very thing is do-able, not having to depend on Turing's fairly limited colour system:
Also note that this idea won't work in reality, unless your paddle is one pixel wide by one pixel high. |
Author: | blaster009 [ Tue Sep 19, 2006 6:30 pm ] |
Post subject: | |
<BEN> casts <LIFE> on target <THISPOST>. Un-necroed! In addition to using the Math.Distance, try to think: The paddle is a rectangle...How could you make the ball not pass through said rectangle? (I suggest using simple comparisons between the ball's center position, which will be [ballX + radius, ballY + radius], and the maximum/minimum possible positions of the paddle (all four corners). |