Sign inSign up

bsord/tetris

By bsord

Updated over 4 years ago

Tetris created with HTML5 Canvas and Javascript

Image
2

500K+

bsord/tetris repository overview

Tetris

Tetris game built on HTML5 Canvas and Javascript. Built mostly as a learning exercise for array matrixes and how to manipulate them.

Getting Started

Running the game is simple:

Prebuilt Docker image (not easily editable)
docker run -d -p 80:80 --name tetris bsord/tetris
Nginx Docker with volume mounts (easily edit)
mkdir ~/tetris
cd ~/tetris
git clone https://github.com/bsord/tetris .
docker run --name tetris -v /home/YOURUSERNAME/tetris/:/usr/share/nginx/html:ro -d -p 88:80 nginx
Standalone Local
mkdir ~/tetris
cd ~/tetris
git clone https://github.com/bsord/tetris .
sudo cp * /usr/share/nginx/html

Once downloaded and place in a web server directory, open it in your browser

Tag summary

Content type

Image

Digest

Size

55.8 MB

Last updated

over 4 years ago

docker pull bsord/tetris