Browse Source

update

main
Justin Senn 2 years ago
parent
commit
19888b742f
  1. 9
      src/main/java/Snake/SnakeView.java
  2. BIN
      target/classes/Snake/Snake$1.class
  3. BIN
      target/classes/Snake/Snake$SnakeDirection.class
  4. BIN
      target/classes/Snake/Snake.class
  5. BIN
      target/classes/Snake/SnakeView.class

9
src/main/java/Snake/SnakeView.java

@ -1,10 +1,19 @@
package Snake; package Snake;
import java.awt.*; import java.awt.*;
import java.util.ArrayList;
public class SnakeView implements Drawable{ public class SnakeView implements Drawable{
private final int cellSize;
private ArrayList<Point> positions;
public SnakeView(int cellSize)
{
positions = new ArrayList<>();
this.cellSize = cellSize;
}
@Override @Override

BIN
target/classes/Snake/Snake$1.class

BIN
target/classes/Snake/Snake$SnakeDirection.class

BIN
target/classes/Snake/Snake.class

BIN
target/classes/Snake/SnakeView.class

Loading…
Cancel
Save