#/
1 messages · Page 1 of 1 (latest)
I would like to do it on light bulbs, like that time, but it's too late
At first, I wanted to repaint all the wires so that it would be more convenient to do something with them later, but this is very long and inconvenient, so now all new wires will be of the same color
peak did you get the paddles moving?
ye and ts now bounces to other side
the ball?
ah yeah ok
lookup DDA
or Bresenham line drawing algorithm
then you get the direction it moves set a point that's way outside of the screen and make it target it until it hits a wall
if it does just reverse the target Y
ts is hard
and if it hits paddle reverse X and change direction based on paddle movement and ball movement
sounds harder than it is
well, I will finish both sides so that they would be working, and then I will try to make a movement along the Y
honestly if you struggle too much you could just make the ball move in 45° lines constantly the logic for that would be giga simple
ye 45 angle is easiest way