https://github.com/roguh/tetris-for-two
Tetris for two. A fun tetris game with many different game modes
https://github.com/roguh/tetris-for-two
css elm game html html5 javascript tetris
Last synced: about 2 months ago
JSON representation
Tetris for two. A fun tetris game with many different game modes
- Host: GitHub
- URL: https://github.com/roguh/tetris-for-two
- Owner: roguh
- Created: 2017-09-06T03:56:09.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-11-22T05:29:02.000Z (over 4 years ago)
- Last Synced: 2025-01-26T04:42:01.289Z (over 1 year ago)
- Topics: css, elm, game, html, html5, javascript, tetris
- Language: Elm
- Homepage: http://roguh.com/projects/tetris-for-two/
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tetris for two
A fun tetris game with many different game modes.
## PLAY HERE: [roguh.com/projects/tetris-for-two](https://roguh.com/projects/tetris-for-two/)
## Player 1 (left) controls:
Press these `BUTTONS` to move your tetromino and beat your opponent!
**Move tetromino to the left**: `A`
**Move tetromino to the right**: `D`
**Drop tetromino faster**: `S`
**Drop tetromino immediately**: `W`
**Rotate tetromino to the left**: `Z`
**Rotate tetromino to the right**: `X`
**Save piece for later**: `T`
## Player 2 (right) controls:
Press these `BUTTONS` to move your tetromino and beat your opponent!
**Move tetromino to the left**: `left arrow`
**Move tetromino to the right**: `right arrow`
**Drop tetromino faster**: `down arrow`
**Drop tetromino immediately**: `up arrow`
**Rotate tetromino to the left**: `,`
**Rotate tetromino to the right**: `.`
**Save piece for later**: `L`
## Development
### With ASDF
This project needs an older version of Elm, so an elm version manager is recommended.
Here are instructions using ASDF:
```
$ asdf plugin add elm
$ asdf install elm 0.18.0
$ asdf shell elm 0.18.0
```
### Building
Make sure you have Elm version 0.18.0 or up and less than 0.19.0:
```
$ elm --version
0.18.0
```
Build by running:
```
./build.sh
```
Output will be in `./main.js`. You need to load `style.css`.