|
@ -1,6 +1,8 @@ |
|
|
package Snake; |
|
|
package Snake; |
|
|
|
|
|
|
|
|
import java.awt.*; |
|
|
|
|
|
|
|
|
import java.awt.Point; |
|
|
|
|
|
import java.awt.Color; |
|
|
|
|
|
import java.awt.Graphics; |
|
|
|
|
|
|
|
|
public class AppleView implements Drawable |
|
|
public class AppleView implements Drawable |
|
|
{ |
|
|
{ |
|
@ -10,9 +12,7 @@ public class AppleView implements Drawable |
|
|
|
|
|
|
|
|
public AppleView(int size) |
|
|
public AppleView(int size) |
|
|
{ |
|
|
{ |
|
|
int x = 0; |
|
|
|
|
|
int y = 0; |
|
|
|
|
|
position = new Point(x, y); |
|
|
|
|
|
|
|
|
position = new Point(0, 0); |
|
|
this.size = size; |
|
|
this.size = size; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|