Tetris clone built to experiment with the HTML5 canvas.
- Event driven single page application, completely within a canvas.
- Uses Require.js to structure the Javascript in modules.
- Uses Radio.js to respond to events.
- Loads all Tetris segments from a single image file.
- Menu.
- High scores (only client side, not persisted).
- Unit tests using QUnit.
- Custom font, created with FontStruct and converted to woff with ttf-to-woff
- Runs from file system, no web server necessary. However, a version (not always up to date) is running in Azure on http://samtris.azurewebsites.net.
- Use the Vagrantfile if you can't run Docker locally, for example when you have Windows 10 Home. See Vagrant for more information.
- To create the image:
git clone https://github.com/samegens/samtrisjs
cd samtrisjs
docker build -t samtrisjs .
docker run -d --name samtrisjs -p 8080:8080 samtrisjs
- Point your browser to http://localhost:8080, or replace localhost by the IP-address of the VM.
To clean up:
docker stop samtrisjs
docker rm samtrisjs