Tetris - HTML5 - Peter Coles (2025)

A simple tetris implementation—using the HTML5 canvas element—that lets you choose from differentmodes for selecting the next piece. You might have the most fun with “nice” and “evil”.Also, “autopilot” can be fun to watch.

If you can read this, your browser doesn't support the canvas element. Please upgrade to a better browser.

Move the shapes with the arrow keys. Rotate piece with the up key, z, and x. Pause the game with p and toggle autopilot mode with the back tick (the key that has ~ on it).

Tetris - HTML5 - Peter Coles (2025)

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Amb. Frankie Simonis

Last Updated:

Views: 5577

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Amb. Frankie Simonis

Birthday: 1998-02-19

Address: 64841 Delmar Isle, North Wiley, OR 74073

Phone: +17844167847676

Job: Forward IT Agent

Hobby: LARPing, Kitesurfing, Sewing, Digital arts, Sand art, Gardening, Dance

Introduction: My name is Amb. Frankie Simonis, I am a hilarious, enchanting, energetic, cooperative, innocent, cute, joyous person who loves writing and wants to share my knowledge and understanding with you.