+ 2
movement
How can i add movement to my game? https://code.sololearn.com/WUM8sgzB0qHH/?ref=app
4 Answers
+ 3
You could add click events to the buttons. On each click, you set the position of the moving objects.
+ 3
Why do you want to manipulate the css?
Do you want to move the canvas? Or do you want to move something that you draw on the canvas.
You might be interested in the sololearn Game Development course.
https://www.sololearn.com/Course/GameDev-with-JavaScript/?ref=app
0
Idk how to manipulate css with js
0
I want to move the canvas