Skip to content

yohandev/Tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tetris

An online multiplayer implementation of the classis Tetris. Made for my AP Computer Science Class.

Gameplay

Gameplay Screenshot The game is simple and familiar; it's classical Tetris except cleared lines are sent over to other players, making their odds of losing greater. Rather than accumulating points as in normal Tetris, the goal is to survive longer than the other players.

A quick tour:

  • Blocks on the left
    • The queue of next blocks; the top most is the nearest coming block, use this information strategically!
  • Large Tetris Board on the left
    • Your Tetris Board which you can control with the arrow keys(all four are used)
  • Small Tetris Board(s) on the right
    • Opponent's boards. Greyed out ones indicate that player has lost.

Launch Instructions

  1. Download the game launcher.
  2. Open it by double-clicking(Windows) or right-click --> "Open" on Mac. It's important to right-click-open on Mac!!!
  3. A launcher window will prompt you to wait(for the game itself to download) then ask for your username.
  4. Enter the field and hit play!

Server Launch Instructions

  1. Download the server build.
  2. Configure the IP Address in the master server configuration sheet.
  • Discover your IP address using services such as https://whatsmyip.com/. "localhost" or "127.0.0.1" also works when running locally. I recommend running on LAN with friends unless you're familiar with NAT punchthrough(The game uses both TCP and UDP, so configure your router that way).
  • If you're denied access from this document, it's most likely because you're a stranger reading this :P
  • Instead of using the launcher, run the latest client build directly with arguments:

java -jar LATEST_CLIENT_BUILD_PATH serverIP tcpPort udpPort username

  1. Configure the maximum number of players in that same configuration document. The server automatically starts the game once that number is reached
  2. Double click the downloaded server build and connect clients!

Dependencies & Credits

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages