games50 / pong

Atari's 1972 classic, implemented in Lua with LÖVE
835 stars 1.13k forks source link

Pong 3 Paddles not moving #72

Open RoopSai-PavanTej opened 3 years ago

RoopSai-PavanTej commented 3 years ago

I tried but paddles are not moving

karimfayed commented 2 years ago

I was having the same problem until I found out that I forgot to change the Y variable in the function love.graphics.rectangle() so make sure it's love.graphics.rectangle('fill',10,paddle1Y,5,20) instead of love.graphics.rectangle('fill',10,30,5,20) NOTE: paddle1Y is the variable that changes dynamically when movement key is down