0

how to make a ball move when clicked on a arrow button

I found this on the internet.. https://code.sololearn.com/W0HvoLHHk7wX But i have no idea what the ___________________ <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/p5.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/addons/p5.dom.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/addons/p5.sound.min.js"></script> _______________________ does, Could someone help me make a version in plain html/javascript? or explain what that does..

3rd Jul 2019, 11:25 AM
mine
mine - avatar
4 ответов
+ 2
You can either use DOM manipulation, or canvas. If you just want a moving ball, you should probably use DOM, since it is easier
3rd Jul 2019, 11:55 AM
Airree
Airree - avatar
+ 2
thanks!
4th Jul 2019, 8:55 PM
mine
mine - avatar
0
How to use that to make it move? i know how to make rectangles and stuff but i cant find how to get it to move.. would help me alot if you could help me more with it!
3rd Jul 2019, 12:32 PM
mine
mine - avatar