Multi_GOtris

command module
v0.0.0-...-e23204a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2019 License: MIT Imports: 7 Imported by: 0

README

Multi GOtris

A multiplyer golang tetris.
University project for learning programming with Go.

To get the game
  • The only dependency the project has is cross platform Ebiten 2D game library used for the graphics, texts, inputs and sounds. Installing the library is shown for different platforms.
    Here is th documentation for the library.

  • To get the game run go get github.com/bdkamenov/Multi_GOtris or clone the repository. The go get command will resolve the dependencies and will get all needed libs to run the game.

  • The game uses command-line arguments for running and connecting to server and choose the game mode.

Example run
  • go run main.go -server -mode=classic -name=killer -numofplayers=3 to run the server
  • go run main.go -connect=127.0.0.1 -name=victim to run the client
  • go run main.go -help to see all options with the default values
Controls
  • Left/Right arrow - Move piece
  • Up arrow - Rotate piece
  • Down arrow - Fast fall
  • Space - Hold piece
Features
  • The connection is using tcp protocol for transferring data.

TODO:

  • make the server multithread so more players can play
  • fix drawing bugs

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL