+ 1
Can anybody help me in code to move an image on canvas using arrow keys in JavaScript?
Move image on canvas
5 Respostas
+ 1
ya I know these concepts
+ 1
it is ok in left and top condition but going out of canvas in right and bottom sides.
+ 1
what is x and y
0
No I want to draw an image on canvas then move it whenever any arrow key is pressed
0
also image is started to move but it goes out of canvas enen I applied if condition