Coder Social home page Coder Social logo

tetris-game's Introduction

Java TETRIS GAME

TetrisShot

CI License

Algorithms gathered from other websites and sound files are gathered from web as well.

Game Controls

↑ - Up

↓ - Down (faster down)

← - Left

→ - Right

p - Pause game

r - Change rotation (left/right)

space - Drop the block down

x - Restart Game

Hidden sound

Points over Makes Sound
500 Holy Alphabet
1000 Holy Caffeine
3000 Holy Fruit Salad
5000 Holy Heart Failure
10000 Holy Mashed Potato
20000 Holy Nightmare
30000 Bitchin

Scoring

Action Awarded points
Down (Soft drop) 1
Drop rows * 2
1 Row cleared 100
2 Row cleared 300
3 Row cleared 600
4 Row cleared 900

Leveling

Levels up every minute regardless of scores (excluding paused time).

600ms is initial speed and every level gets faster by 50ms.

Contributors

Calvin Lee, @stalk.calvin

Add me to Instagram Instagram
Add me to Linkedin LinkedIn

Ways to play the game:

  1. clone repo: https://github.com/stalk-calvin/tetris-game.git
  2. cd tetris-game
  3. run: mvn install exec:java -Dexec.mainClass="tetris.Main"

tetris-game's People

Contributors

stalk-calvin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tetris-game's Issues

The need for generating serialVersionUID

I am new to Java, so I haven't heard of serializable classes before, but I read about them and realized that they are important. The thing is that I believe you didn't declare a serialVersionUID for a reason. I searched the Internet for solving that issue but they (the people on the Internet) can't agree on implementing the default one or generating it. Since you are the creator of this project, I have to know what you suggest

I need this project for running, testing and analyzing
Thanks for this amazing game

The third step of "Ways to play the game"

You mentioned this in README file

Ways to play the game:
clone repo: https://github.com/stalk-calvin/tetris-game.git
cd tetris-game
run: mvn install exec:java -Dexec.mainClass="tetris.Main"

I wonder how to do the third step, I know at least it has to be done in a cmd (the windows one or Git cmd), but when I copy-paste it, it doesn't work.
I didn't have problems with the first and second step.

I want to apply it because when I run the game in eclipse, the frame seems to be omitted at the end (the last line is omitted of the game frame)

bugs found in vs bugs tool

When I ran the code in the vs bugs extension, i found these bugs:

TimerEventjava src\main\ java\timer
The value of the field TimerEvent.source is not used Java(570425421) [Ln 15, Col 20)

CountDowjava src\main\java\timer
O TODO: Make a start method the timer, rather than starting it on constructor Java(536871362) (Ln 1, Col 3)
O TODO: Javadoc comment Java(536871362) [Ln 2 Col 3)
O TODO: Make an array of listenesrather than just one lava(536871362) (Ln 3, Col 3)
O TODO: A restart method Java(536871362) [Ln 4, Col 3)
O TODO: Unregistered listener method Java(536871362) [Ln S, Col3)

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.