+ 2

movement

How can i add movement to my game? https://code.sololearn.com/WUM8sgzB0qHH/?ref=app

29th Jul 2022, 4:04 PM
Bogyo - Leția Eduard
Bogyo - Leția Eduard - avatar
4 Antworten
+ 3
You could add click events to the buttons. On each click, you set the position of the moving objects.
29th Jul 2022, 4:30 PM
Lisa
Lisa - avatar
+ 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
29th Jul 2022, 5:26 PM
Lisa
Lisa - avatar
0
Idk how to manipulate css with js
29th Jul 2022, 5:20 PM
Bogyo - Leția Eduard
Bogyo - Leția Eduard - avatar
0
I want to move the canvas
29th Jul 2022, 5:49 PM
Bogyo - Leția Eduard
Bogyo - Leția Eduard - avatar