Rectangle not moving

Yeah, well…

I mean, first of all you could use ctrl-t in processing prior to posting

When posting: format your code.

Then: in the class you have one y for one paddle and one y for the other. This defies the principle of a class.

A class represents only ONE paddle and is oblivious to any other. And the class should be able to represent 1000 paddles with the same y for all

1 Like