SVG isn t sutable for games. I might recommend it for static games. Canvas is mostly recommended and used a lot. You can make also 3D games with canvas because it supports WEBGL. Writing scripts for canvas are very easy in pure js but you can choose between libraries (p5.js, phaser - it is exactly for games). Finally I learn building canvas games, you can check my codes.