I am very new to javascript only been using it for a few weeks. I'm trying to make games from scratch just to learn the basics of how they work. I made a breakout from a tutorial and changed a few things like adding background images, music, and 10 levels. Learning how images work there is something I don't understand.
How does javascript know to move the paddle with the arrow keys. Why don't the bricks move accidentally? How is the paddle variable assigned to the bricks? I don't see anything in the code for the keys related to the paddle. The game only works online on a PC at Urbangamez.site