Collection of free JavaScript Tetris game code examples.


Demo image: GameBoy Tetris Clone

Author

  • Dylan Greene

Made with

  • HTML / CSS / JS

About a code

GameBoy Tetris Clone

A simple javascript version of Tetris for the GameBoy. Although it's pretty similar to every version of Tetris. Uses p5.js for drawing!

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: p5.js, p5.dom.js

Demo image: Tetris

Author

  • Shadman Kudchikar

Made with

  • HTML (Pug) / CSS / JS

About a code

Tetris

Tetris is one of the best games from the most popular console of the 1990s. Do you feel tired of complicated and difficult games? Did you miss the favorite classic games? Let's play this game to feel nostalgic! How to play: Move and rotate the falling blocks. Lines are cleared when they are filled with blocks and have no empty spaces.

Compatible browsers: Chrome, Firefox, Opera, Safari

Responsive: no

Dependencies: font-awesome.css, jquery.js, animatelo.js

Demo image: Tetris With High Score Tracking

Author

  • Daniel Meeusen

Made with

  • HTML / CSS (SCSS) / JS

About a code

Tetris With High Score Tracking

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: font-awesome.css

Demo image: Tetris AI

Author

  • Teemu Vilkman

Made with

  • HTML / CSS / JS

About a code

Tetris

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: jquery.js

Demo image: Tetris

Author

  • hankuro

Made with

  • HTML / CSS / JS

About a code

Tetris

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: jquery.js

Demo image: Tetris

Author

  • daemon.devin

Made with

  • HTML / CSS / JS

About a code

Tetris

The game of Tetris using JavaScript.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: font-awesome.css, d3.js

Demo image: Backbone Tetris

Author

  • unlikenesses

Made with

  • HTML / CSS / JS

About a code

Backbone Tetris

An implementation of a very simple Tetris (no scoring, no levels, no fun) in Backbone.js.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: jquery.js, underscore.js, backbone.js, jsfxr.js

Demo image: Tetris

Author

  • Brandon Semilla

Made with

  • HTML / CSS / JS

About a code

Tetris

Player 1: WASD, Left Shift, Space. Player 2: Arrow Keys, Right Shift, Return.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: -

Demo image: Tetris In Vanilla JS

Author

  • Rich East

Made with

  • HTML / CSS / JS

About a code

Tetris In Vanilla JS

The goal is to make a Tetris emulation that is resolution independent with pixel-perfect edges and can intelligently resize itself based on changes in window size.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -