Saw a squash tutorial on picozine 1 and
decided to toy with the options
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](https://www.lexaloffle.com/bbs/files/15232/me-square.jpg)
It's pong. Now for a challenge, make a computer controlled player and possibly add the 'original' controls where the player could put English on the ball in mid-flight.
I haven't seen anyone to date do this.
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](https://www.lexaloffle.com/bbs/files/15838/Eva01.png)
I mean, it's really squash, as you play against yourself :v
But yeah, it's not a real challenge or anything, just my first time doing something with the console, based on the tutorial
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](/bimg/pi/pi22.png)
I'm currently making an enhanced version of squashy (you can see it on my profile). I was wondering, which part of your code made it so the ball bounced at angles? I'm new to coding so my current system just has a circle and a rectangle and when they collide, the ball y direction just reverses (and also speeds up a little). It would be very helpful.
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](https://www.lexaloffle.com/bimg/pi/pi7.png)
@shawneeboy - I solved it by using a pitagoran therum. It is not the most sophisticated solution, but it worked for a noob coder like me.
[Please log in to post a comment]