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

Comments for Pong Soccer

Return to Pong Soccer

we are a computing scrum from a school in essex and are programing a greenfoot game as a project!! -MS
A new version of this scenario was uploaded on Wed Feb 27 17:08:41 UTC 2013
EPICxFAIL-_EPICxFAIL-_

2013/2/27

I can on the next update, I just added a loop for the ball to start going random directions, and I'm trying to fix a "catch" glitch with the ball. The keepers tend to hold the ball every once and awhile and it makes the ball move really fast once it's released. Once i figure that out I'll add the code in.
EPICxFAIL-_EPICxFAIL-_

2013/2/27

And follow me if you want. We are working on a lot of games, and next year I'm doing a computer science course and independent study computer science so I'll be making a lot of different games and adding them here.
EPICxFAIL-_EPICxFAIL-_

2013/2/27

And if you do base a game off this please give me credit for it :D
yeah we also had that problem and will do mater-RB
EPICxFAIL-_EPICxFAIL-_

2013/3/1

I'm still learning the coding, so I don't know if my teacher at my High School even knows how to fix it, but I can try, once I fix it I'll be sure to post the code for you. But you can't use the goalie pictures and the background coding, the goalies were my friends illustrations and he only gave me the right to use them, sorry, you'll have to find your own if you want to use one, and the background was my own idea.
EPICxFAIL-_EPICxFAIL-_

2013/3/1

I can give you the coding to let you use the background on my page that looks similar to this background,
EPICxFAIL-_EPICxFAIL-_

2013/3/4

Sorry about the inconvenience of the background and the goalies.
A new version of this scenario was uploaded on Sat Mar 09 16:28:06 UTC 2013 **Added code for people who wanted it.
A new version of this scenario was uploaded on Sat Mar 09 16:28:53 UTC 2013 **Added code for people who wanted it.
EPICxFAIL-_EPICxFAIL-_

2013/3/9

TeamProtection I posted the coding for you, I'm not at my computer at the time so I will post the coding for the other background on my page so you can use that background and not the soccer field. I still haven't fixed that one glitch yet so if you all figure it out please tell me. Thank you, EPICxFAIL-_
A new version of this scenario was uploaded on Wed Mar 13 16:15:47 UTC 2013
chris553chris553

2013/3/25

Is it possible I could use your source code? It was shared previously and I saw your code and that you drew all your lines manually line by line. For a school project I wanted to modify your code and use arrays and loops to create your soccer nets. Would this be ok?
chris553chris553

2013/3/25

I will be more than happy to share the code I create with you as well.
EPICxFAIL-_EPICxFAIL-_

2013/3/28

Yea that's fine. I have been working on term paper stuff so I haven't checked this for a few days, sorry for the delay. But I can when I get back to my home later today. And will you just be using the background? Just wondering because the Goalies in this game were drawn by hand from a friend of mine who is an illustrator and gave me only rights to it, if you use anything else from it is fine with me, only the goalies are off limits.
EPICxFAIL-_EPICxFAIL-_

2013/3/28

And if you could help me maybe with a catching glitch with the ball and the sides of the Goalies I'd appreciate it because I can't seem to figure that one out. I've tried so many things and made many different versions from it and haven't fixed it yet. I could give you my eMail if you would like to send coding instead of posting it on here.
chris553chris553

2013/3/28

I definitely could help. Can you tell me specifically what the glitches are so I can reproduce them and figure them out. I won't touch the goalies, it's mainly just background stuff. Does this site have PM so you can send email privately to keep spammers away?
EPICxFAIL-_EPICxFAIL-_

2013/4/2

It's with the ball's size and speed, if it moves fast enough the goalie will catch it. I have it set up so that every time a goalie hits the ball the speed of the ball increases on both the x and y speed, so after awhile it will move fast enough the the jump in between each "move" will move to much and jump into the goalie image and get stuck. I've been trying to fix it for awhile now and nothing seems to be working. And I don't think it does have a PM and it sucks you can't delete comments, I can give you my "spam" email and get your eMail from that and use my personal eMail if that would work.
EPICxFAIL-_EPICxFAIL-_

2013/4/3

My spam eMail is j.durb89@yahoo.com. Make the subject in caps so I can find it, I'll just copy the eMail address into my contacts and then I'll send you an eMail from my personal eMail in all caps. I'll be checking my eMail frequently for yours. Put your name in the eMail also.
chris553chris553

2013/4/4

email sent. Where do I download the program? The open in greenfoot button does not exist anymore.
EPICxFAIL-_EPICxFAIL-_

2013/4/5

I'll add it in class again today. When I get home I'll check my eMail and add it to my contacts. I'll be using my iPod for my eMail sending so there will be a signature at the bottom.
A new version of this scenario was uploaded on Fri Apr 05 16:56:38 UTC 2013 Just putting the source code up.
EPICxFAIL-_EPICxFAIL-_

2013/4/5

The source code is up.
EPICxFAIL-_EPICxFAIL-_

2013/4/8

I sent you an eMail from my personal eMail, I'll check it again tonight.
A new version of this scenario was uploaded on Mon Apr 08 17:00:30 UTC 2013 **Goalies move a bit faster. Next update will have Computer control for a certain key hit.
A new version of this scenario was uploaded on Mon Apr 08 17:04:46 UTC 2013 **Goalies move a bit faster. Next update will have Computer control for a certain key hit.
rkadadorkadado

2013/4/8

How did you get the ball to bounce off the goalies?
Wheres the source code
EPICxFAIL-_EPICxFAIL-_

2013/4/9

@rkadado Make it if (ball!=null) deltaX = -deltaX
EPICxFAIL-_EPICxFAIL-_

2013/4/9

@RhanthonyProductions my last update took it out, I'll put it up again later today.
A new version of this scenario was uploaded on Tue Apr 09 16:10:56 UTC 2013 **Added source code.
A new version of this scenario was uploaded on Tue Apr 09 16:34:39 UTC 2013 **Added source code.
A new version of this scenario was uploaded on Tue Apr 09 16:35:02 UTC 2013 **Added source code.
A new version of this scenario was uploaded on Thu Apr 11 17:15:56 UTC 2013 ** Fixed center circle a little
A new version of this scenario was uploaded on Mon Apr 15 16:07:05 UTC 2013
How did you get the characters?
EPICxFAIL-_EPICxFAIL-_

2013/4/18

@RhanthonyProductions What do you mean exactly? Sorry i don't understand what you're asking me.
A new version of this scenario was uploaded on Fri Apr 19 15:32:10 UTC 2013 **Bug fixes
greglee33greglee33

2013/5/13

Where can I get the source code for this game? I'm a newbie and I want to see how do you make the ball bounce, thanks in advice and sorry for my english :)
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!