|
@ -35,10 +35,7 @@ public class SnakeView implements Drawable{ |
|
|
g.fillOval((int)positions.get(0).getX(), |
|
|
g.fillOval((int)positions.get(0).getX(), |
|
|
(int)positions.get(0).getY(), cellSize, cellSize); |
|
|
(int)positions.get(0).getY(), cellSize, cellSize); |
|
|
|
|
|
|
|
|
int r = 144; |
|
|
|
|
|
int g1 = 238; |
|
|
|
|
|
int b = 144; |
|
|
|
|
|
g.setColor(new Color(r, g1, b)); |
|
|
|
|
|
|
|
|
g.setColor(new Color(144, 238, 144)); |
|
|
for(int i = 1; i < positions.size(); ++i) |
|
|
for(int i = 1; i < positions.size(); ++i) |
|
|
{ |
|
|
{ |
|
|
// g.fillRect((int)positions.get(i).getX(), |
|
|
// g.fillRect((int)positions.get(i).getX(), |
|
|