Skip to content

A real-time tetris game written in javascript using node.js and socket.io

License

Notifications You must be signed in to change notification settings

StuffByLiang/tetris-online

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tetris-online

A real-time Tetris game written in JavaScript using node.js and socket.io

Quick start

Prerequisites

You must download git and node.js to begin development

Clone repository

First clone the tetris-online repository on github

git clone https://github.com/StuffByLiang/tetris-online.git

Install

To begin development, you must install required dependencies (run the commands in the project's root directory)

npm install
npm install --only=dev

Additionally, also install webpack and docsify

npm i -g webpack webpack-cli docsify-cli

Run the Tetris Server

Run the following code and then in your browser visit http://localhost:3000

npm start

Developing Features

To incorporate your own changes, edit files under scripts and then compile them by typing the following command and the project's root directory. All changes under /scripts will be autocompiled into /dist/bundle.js

webpack

Checking the documentation

Check the documentation! Run the following code and then in your browser visit http://localhost:3001

npm run docs

Writing content

Visit new.html in the root directory on the browser to play the game. Make sure you run webpack beforehand.

About

A real-time tetris game written in javascript using node.js and socket.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published