Splitted game interval in two functions: 'controlGame' and 'draw'. In the draw function 'window.requestAnimationFrame' is called for a better drawing performance.
Splitted game interval in two functions: 'controlGame' and 'draw'. In the draw function 'window.requestAnimationFrame' is called for a better drawing performance.

Safi1012/Safi1012.github.io,Safi1012/Safi1012.github.io,Safi1012/ResponsiveSnake,Safi1012/ResponsiveSnake