replace the client with something better

This commit is contained in:
ThatGamerBlue
2022-06-23 11:01:19 +01:00
parent 9edd632608
commit 1c1c64c729
5 changed files with 369 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package com.thatgamerblue.snake;
public enum Direction {
UP(0, -1, "^"),
DOWN(0, 1, "v"),
LEFT(-1, 0, "<"),
RIGHT(1, 0, ">");
public int xOffset;
public int yOffset;
public String display;
Direction(int xOff, int yOff, String display) {
xOffset = xOff;
yOffset = yOff;
this.display = display;
}
}