1
0
Fork
You've already forked UniTetris
0
Tetris-style game made for university
  • Java 100%
Find a file
2021年10月19日 17:43:09 +02:00
.idea Initial public commit 2021年10月19日 17:05:13 +02:00
src/main Initial public commit 2021年10月19日 17:05:13 +02:00
.gitignore Initial public commit 2021年10月19日 17:05:13 +02:00
LICENCE Initial public commit 2021年10月19日 17:05:13 +02:00
pom.xml Fix Jar not including gson properly 2021年10月19日 17:32:30 +02:00
README.md Remove extra export 2021年10月19日 17:43:09 +02:00

UniTetris

Description

This is a tetris-style game I made for university in Java (which is why it e.g. has that awkward splash). It's not great and has some bugs, but it's playable.

Building and running

$ mvn package
$ java -jar target/UniTetris.jar

Make sure your $JAVA_HOME points to a Java 17 installation (or later), and that your java command uses Java 17. Earlier versions may work as well, but Java 11 is known to not work.

You can see the path to your Java home by running this:

$ java -XshowSettings:properties -version

Look for java.home.

On Fedora 34 x86_64, setting the proper Java home for Java 17 can be done with this command:

$ export JAVA_HOME=/usr/lib/jvm/jre-17-openjdk-17.0.0.0.35-1.rolling.fc34.x86_64

This will likely not work on your system, and solely serves as an example.

Controls

  • Arrow keys or AWSD to move your tetromino and rotate it
  • Spacebar to make it move down faster
  • P to pause

Credits

  • Code - me, Newbyte (largely written as instructed in the course)
  • Music - @darltrash

Licence

All the code and assets in this repository are licenced under the Zlib licence. A copy of it should have been provided with this source code as LICENCE, but should that not be the case you can view the full licence text at https://opensource.org/licenses/zlib.