Giter Club home page Giter Club logo

i-just-want-to-play-tetris's Introduction

tetris

I Just Want to Play Tetris

Website PRs Welcome GitHub issues GitHub latest commit GitHub repo size Lines of code GitHub contributors GitHub Repo stars GitHub forks

I just wanted to play tetris, so I decided to make my own.

Demo

Live demo on tetris.hericl.es

Project Details

Frontend developed with Vanilla JS, backend developed with Express.js

Getting Started

To run the app, right-click the index.html file and open in a web browser (or with Live Server if using VS Code)

Playing the Game

Action Key
Spin Left x
Spin Right
Slide Left
Slide Right
Slide Down
Insta-Drop space
Hold shift
Pause p
Mute Music m

Contributing

Contribute

If it is your first time contributing to this repository, please review our contribution guidelines

i-just-want-to-play-tetris's People

Contributors

c-grigsby avatar monuelo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

i-just-want-to-play-tetris's Issues

Fix hold command

Description

The hold command isn't working as expected when the player is already holding a piece.

Current Behavior

  • The held piece becomes the current
  • The current becomes the next piece
  • The next piece is destroyed

Expected Behavior

  • Swaps current piece and holding

Better README

Description

We could have a rich README.md with badges, instructions to run, contribute, and play.

Add option to mute music

Description

It would be great to have a command to mute the music. Not everyone wants to play with a loud song.

Arrow keys

When I try to use the arrow keys to control movement it scrolls up and down the page which makes me lost sight of the tetris board. How do you get around the issue?

Increase the randomness of pieces

Description

Sometimes, the same piece can appear very often. Maybe a simple function to avoid the same piece plot multiple times in a row could be a good idea to increase the randomness.

Look at this screenshot (omg how much yellow)
image

Game crashing on rotate

When the player tries to rotate a piece and it's not possible, the game should continue and not rotate the piece. However, the game stops and you need to reload the page.

Create themes

Rewrite the render functions to catch a selected theme and render it as well as creating themes.

Create leaderboard

Create a ranking with the top scores and allows a player to register your name and score.

Ghost indicator for falling pieces

Description

The player can't see exactly where the piece is going to fit when performing a hard drop. A grid or ghost indicator might be helpful to player's accuracy.

Add delay when fitting the piece

The pieces are being fitted at the same speed as the fall. To solve this, we need to place the piece at a constant speed when it is at the limit of another block/piece on the base, allowing the player to rotate the piece before it is placed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.