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

Recent Comments