Browse Source

update

main
Justin Senn 2 years ago
parent
commit
458d0b0c92
  1. 10
      src/main/java/Snake/AppleView.java

10
src/main/java/Snake/AppleView.java

@ -1,10 +1,20 @@
package Snake;
import java.awt.Graphics;
import java.awt.Point;
public class AppleView implements Drawable{
private final Point position;
private final int size;
public AppleView(int size)
{
int x = 0;
int y = 0;
position = new Point(x, y);
this.size = size;
}
@Override
public void draw(Graphics g) {

Loading…
Cancel
Save