Thanks for all the feedback. I'll try to incorporate it soon. I haven't had much time for Scratch lately, unfortunately, but I hope to do more with it soon.
Neat. Some improvements: Remove the wait statement in the "Ball" motion, move "1" step to slow it down. If the paddle is hit, move 8 (or so) steps (after turning) to get away from the paddle. Instead of looking for "When (key) pressed", use a forever loop that contains "if (right arrow), turn "X" degrees, if (lft arrow), turn "X" degrees".
Thanks, guys. I wanted to create a complete game in a short time. This took me about an hour in Scratch. The hardest part was figuring out how to rotate the paddle without sine and cosine functions!
Hmmm. This works OK in Safari, but in Firefox I'm not getting key repeats. It's a *lot* harder when I have to hit the arrow keys over and over. Is anyone else seeing the same thing?
Pong for one: tennis played in a circle. Use the right and left arrow keys to move the paddle. Post your high scores in the comments!
Enhancements I'd like to have, but haven't figured out yet:
1. The ball catches on the paddle sometimes, it would be good to check for and avoid that
2. The paddle movement depends on your keyboard repeat rate, so there is an unfortunate delay before it starts moving.
3. Each time you miss, the paddle could shrink, so subsequent games get harder.
4. Use "english" to make the ball move differently depending where it hit the paddle, and the direction and speed the paddle was moving. Right now this is simulated with a bit of randomness added on the bounce.
Comments
You need to be logged in to post comments
Add a Comment
Thanks for all the feedback. I'll try to incorporate it soon. I haven't had much time for Scratch lately, unfortunately, but I hope to do more with it soon.
(view all replies)Comment Reply
Neat. Some improvements: Remove the wait statement in the "Ball" motion, move "1" step to slow it down. If the paddle is hit, move 8 (or so) steps (after turning) to get away from the paddle. Instead of looking for "When (key) pressed", use a forever loop that contains "if (right arrow), turn "X" degrees, if (lft arrow), turn "X" degrees".
(view all replies)Comment Reply
I thinnk I've solved issues 1 & 2: http://ernestpazera.googlepages.com/PongSolitaire.html
(view all replies)Comment Reply
Thanks, guys. I wanted to create a complete game in a short time. This took me about an hour in Scratch. The hardest part was figuring out how to rotate the paddle without sine and cosine functions!
(view all replies)Comment Reply
Such an interesting approach to pong. great idea!
(view all replies)Comment Reply
I got 30 and it is really hard
(view all replies)Comment Reply
Hmmm. This works OK in Safari, but in Firefox I'm not getting key repeats. It's a *lot* harder when I have to hit the arrow keys over and over. Is anyone else seeing the same thing?
(view all replies)Comment Reply