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.
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.
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.
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
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?
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.
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.
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?
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.
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.
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.
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.
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 :)
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.
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
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.
2013/2/27
2013/2/27
2013/2/27
2013/2/27
2013/3/1
2013/3/1
2013/3/1
2013/3/4
2013/3/9
2013/3/25
2013/3/25
2013/3/28
2013/3/28
2013/3/28
2013/4/2
2013/4/3
2013/4/4
2013/4/5
2013/4/5
2013/4/8
2013/4/8
2013/4/8
2013/4/9
2013/4/9
2013/4/17
2013/4/18
2013/5/13
2013/5/13
2013/5/14
2013/5/15
2013/5/17
2013/5/17
2013/5/17
2013/5/20
2013/5/24