Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 🐱πŸšͺπŸΆπŸ‚

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