Making a Tetris game in javascript

Jul 28, 2025 | Technology, Tutorials

Making a Tetris game in Javascript can’t be too hard right? Right?

I had a go years a go by following this brilliant tutorial here on YouTube:

Here is what this version looks like:

You can have a go here:

https://www.kevingordon.org.uk/projects/tetris/tetris.html

You can see the source code here:

https://www.kevingordon.org.uk/projects/tetris/tetris.js

You are welcome!

Please enjoy having a go or building it yourself.


I have also created a version in Java previously, you can view the details here: https://www.kevingordon.org.uk/kevwp4/2022/07/09/getting-a-java-applet-to-work/

And… there is a mobile friendly version with gamepad: https://www.kevingordon.org.uk/projects/tetris-mobile/tetris.html

 

 

Hello, I'm Kev

Kevin Gordon

UK-based Creative Technologist. I make things, break things, and write about what happened. Web dev, LEGO, 3D printing, JavaScript experiments.

More about me →

Recent Posts

  • Loading...

Also worth a look

Play Tetris

Built it myself. In JavaScript. Several times.

Play now →

Looking for the professional side? Patents, Ford, Worldpay and more.

Kevin Gordon Tech ↗