This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

EPICxFAIL-_
EPICxFAIL-_ presents ...

2013/2/22

Pong Soccer

SOCCER PONG!!! Use up and down arrow keys or S and W keys to move the goalies. First to 10 wins. Ball will speed up on you. Offset added for better control. If you like this, vote for it please!!!! And follow me too!!!

5552 views / 16 in the last 7 days

9 votes | 0 in the last 7 days

Tags: game with-source

open in greenfoot

There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)

This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.

EPICxFAIL-_EPICxFAIL-_

2013/5/13

I'll add the source code sometime tomorrow, the program is on my schools computer and not at home (at least i don't think, I'll check though). It should be up by tonight at the earliest and tomorrow afternoon at the latest.
greglee33greglee33

2013/5/14

Ok, I'll wait, thanks again...
EPICxFAIL-_EPICxFAIL-_

2013/5/15

sorry, I couldn't upload it, I was working on a new project that's going to be uploaded soon, so I will try to upload it tomorrow, I'll put a reminder on my iPod to upload it tomorrow when I'm in my class that has the game on it. Sorry for you having to wait a day more.
A new version of this scenario was uploaded on Fri May 17 12:55:52 UTC 2013
greglee33greglee33

2013/5/17

thanks a lot, it wasn't an urgent thing, if I'll have questions I'll post them here...
EPICxFAIL-_EPICxFAIL-_

2013/5/17

it's no bother at all, i was posting most of the code for my college visit today for computer science. so it was urgent for me xD
EPICxFAIL-_EPICxFAIL-_

2013/5/17

And yea, any question you have i can help with, and there is a better way to make to ball bounce with control. To where the method in ball is detectPaddle(), instead of: if (rightPaddle!= null) { deltaX = deltaX * (-1) - 1; deltaY = deltaY - 1; } if (leftPaddle!= null) { deltaX = deltaX * (-1) + 1; deltaY = deltaY + 1; } try: if (rightPaddle!= null) { deltaX = -deltaX; int offset = getY() - paddle.getY(); deltaY = deltaY + offset/10; } if (leftPaddle!= null) { deltaX = -deltaX; int offset = getY() - paddle.getY(); deltaY = deltaY + offset/10; } it allows the player to control what way the ball will bounce by where the ball hits on the paddle
A new version of this scenario was uploaded on Sat May 18 02:16:14 UTC 2013 Added the ability to control direction of the ball.
EPICxFAIL-_EPICxFAIL-_

2013/5/20

leftPaddle.getY(); & rightPaddle.getY(); instead of just paddle.getY();
EPICxFAIL-_EPICxFAIL-_

2013/5/24

UPDATE FOR ADDED CONTROL WILL BE ADDED TODAY!

See all comments

Want to leave a comment? You must first log in.

Who likes this?

Firdaus greglee33 JesusJesus davemib123 chris553 kgsmith henrYoda Nolifer TeamProtection