0

What is <canvas> used for? And how do I use it when I'm making a game?

Please dont bomb me with codes and scripts. I just need plain-text.

9th Apr 2020, 9:11 AM
Koopa Scripter
Koopa Scripter - avatar
1 Réponse
+ 2
canvas allows you to draw lines and images and basic shapes onto the screen. It's a pretty simplistic tool. If you want to make games with it you can, but you have to do eeeverything yourself. I'd say, try to find a tutorial that suits you to understand the basics. Then try to see if you can make simple animations using `window.setInterval` (or even better, `window.requestAnimationFrame`). Then take it from there.
9th Apr 2020, 10:16 AM
Schindlabua
Schindlabua - avatar