I made a snake clone recently using TypeScript. It’s fully responsive and works on desktop, laptop, tablet, or smartphone.

You can use WASD, arrow keys, swiping, or tapping the screen edges to move. Movement is handled using Mousetrap and HammerJS.

Play now