Tag: Tetris

  • Tetris Game Using JavaScript

    We will create the TETRIS game using JavaScript only, means no framework is been used during the tutorial, the tutorial has two parts: 1st part : we understand everything about the game, we discuss things before we code. 2nd part : Type in the Code. ( you can go to the 2nd part directly :…

  • Writing a Tetris game in JavaScript

    In this episode I write a Tetris game in JavaScript from scratch. We will look at * How to draw on a canvas * Rotating a matrix * Rudimentary requestAnimationFrame listening * Handling keyboard input Since we are writing ES6 this code might not run on all browsers yet. I was running Chrome 53 when…