Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/knutkirkhorn/emorjis
Emoji Tetris π±πͺπΆπ
https://github.com/knutkirkhorn/emorjis
emoji emoji-tetris express game javascript mysql nodejs tetris
Last synced: 22 days ago
JSON representation
Emoji Tetris π±πͺπΆπ
- Host: GitHub
- URL: https://github.com/knutkirkhorn/emorjis
- Owner: knutkirkhorn
- License: mit
- Created: 2017-08-09T22:15:41.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-03-04T02:25:27.000Z (almost 2 years ago)
- Last Synced: 2024-04-23T23:05:14.804Z (8 months ago)
- Topics: emoji, emoji-tetris, express, game, javascript, mysql, nodejs, tetris
- Language: JavaScript
- Homepage:
- Size: 787 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# emorjis [![Build Status](https://travis-ci.org/knutkirkhorn/emorjis.svg?branch=main)](https://travis-ci.org/knutkirkhorn/emorjis) [![dependencies Status](https://david-dm.org/knutkirkhorn/emorjis/status.svg)](https://david-dm.org/knutkirkhorn/emorjis)
Emoji Tetris π made with javascript, mysql, express, css and html## Installation
```
$ git clone https://github.com/knutkirkhorn/emorjis
```The server has stored its database configuration in the [db-config.json](db-config.json)
file and it needs to be updated to the users correct database.
The database script [database.sql](database.sql) needs to be run in a database before starting the server aswell.### Install dependencies
```
$ npm install
```
### Run
```
$ npm start
```## Screenshots
![Preview](media/screenshot-1.png)### Menu
![Preview](media/screenshot-2.png)### Game over
![Preview](media/screenshot-3.png)## Controls
* β to navigate left and β to navigate right.
* β to rotate the tetromino clockwise.
* β to move tetromino faster.
* Space to drop the tetromino all the way down.
* Escape to pause the game and view a menu.## Score system
In emorjis you get score from:
* Letting a tetromino drop all the way down, you only get a score of 10.
* Move a tetromino all the way down(triggered by pressing Space).
Score is calculated by how many rows you move down. The score is the number of rows to move down multiplied with 10.
* Example: move 7 rows down: 7 Γ 10 = 70
* Clear rows. You get 100 base score multiplied with number of rows cleared powered.
* Example: 2 rows cleared = 100 Γ 2Β² = 400## Documentation
See [src/README.md](src/README.md) for a explenation of some of the code.## Licence
MIT Β© Knut Kirkhorn