Skip to content
/ tetris Public

A simple tetris clone made with Typescript and HTML5 canvas API

Notifications You must be signed in to change notification settings

damnjan/tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tetris

A simple tetris clone written in TypeScript using native canvas and a little bit of Rx.js

Demo

Usage

const game = new Game(document.getElementById('canvas'))

game.start()

game.scoreSubject.subscribe(score => {
  console.log(`Score: ${score}`)
})

game.gameOverSubject.subscribe(score => {
  console.log(`Game over! Your score is ${score}`)
  game.stop()
  game.reset()
  game.start()
})

About

A simple tetris clone made with Typescript and HTML5 canvas API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published