Log In  

Cart #29644 | 2016-09-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA


Saw a squash tutorial on picozine 1 and
decided to toy with the options

P#29645 2016-09-29 00:34 ( Edited 2017-01-04 23:27)

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.

https://www.youtube.com/watch?v=jLGBtkKPj2U

P#29648 2016-09-29 00:59 ( Edited 2016-09-29 04:59)

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

P#32647 2016-11-20 08:35 ( Edited 2016-11-20 13:35)

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.

P#34938 2017-01-04 16:30 ( Edited 2017-01-04 21:30)

@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.

P#34945 2017-01-04 18:27 ( Edited 2017-01-04 23:27)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-16 21:43:31 | 0.014s | Q:18