Skip to content

The aim of this project is to develop a multiplayer tetris game in Full Stack Javascript

Notifications You must be signed in to change notification settings

tillderoquefeuil-42-web/redtetris

Repository files navigation

redtetris

The aim of this project is to develop a multiplayer tetris game in Full Stack Javascript

table of contents

usage

Development Mode

# INSTALL DEPENDENCIES
$ npm install

# LAUNCH SERVER
$ npm run srv-dev
> [email protected] srv-dev /project/path/redtetris
> DEBUG=tetris:* babel-watch -w src src/server/main.js

# LAUNCH CLIENT
$ npm run client-dev
> [email protected] client-dev /project/path/redtetris
> webpack-dev-server --colors --hot --inline --host 0.0.0.0 --port 8080

# RUN TEST
$ npm run test

Production Mode

# LAUNCH SERVER
$ npm run srv-dist

# LAUNCH CLIENT
$ npm run client-dist

the game

  1. single player rules

    • goal :
      Bring down blocks from the top of the screen
      Your objective is to get all the blocks to fill all the empty space in a line at the bottom of the screen
      The main goal is to last as long as you can
    • game over (topping out) :
      Your game is over if your pieces reach the top of the screen
    • action :
      You can only move the pieces in specific ways (rotation by 90°)
      You can only remove pieces from the screen by filling all the blank space in a line
    • board :
      10 columns and 20 lines
  2. multi players rules

    • each player owns his board
    • if a player removes a line, all others have a blocked line from above in malus
    • you can see every players boards (only the highest block of each column)
    • first player hosts the room (right to restart)
  3. tetriminos
    7 pieces :
    ⠏ | ⠹ | ⠞ | ⠳ | ⠛ | ⡇ | ⠺

  4. player controls

    • ←/→ : move horizontaly to the left/right
    • ↑ : rotation (90° to the right)
    • ↓ : increase falling speed
    • spacebar : move tetriminos to the bottom instantly

project constraints

  • techno
    • Nodejs
    • React
    • Redux
    • socket.io
  • back/front
    • start from boilerplate
    • index.html and bundle.js are the only files required by the client
    • hash based url (http://<server_name_or_ip>:/#[<player_name>])

references

About the game :

About ReactJS :

About ReduxJS :

Other :

About

The aim of this project is to develop a multiplayer tetris game in Full Stack Javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published