/Tetris.ts

A simple Tetris game written in TypeScript using SVG

Primary LanguageTypeScript

Tetris.ts

A simple Tetris game written in TypeScript with using SVG.

Keys

  • Spacebar : Start game.
  • Up Arrow : Rotate left.
  • Left Arrow : Move shape left.
  • Right Arrow : Move shape right.
  • Down Arrow : Lower shape.
  • Enter : Drop shape.

Demo

Play here!

Screenshots

1 2 3

Development

To run webserver with watch code changes:

npm install
npm run start

Then go to http://localhost:9000/