Browse Source

refactoring:

main
Justin Senn 2 years ago
parent
commit
2279abf86a
  1. 5
      src/main/java/Snake/SnakeView.java

5
src/main/java/Snake/SnakeView.java

@ -35,10 +35,7 @@ public class SnakeView implements Drawable{
g.fillOval((int)positions.get(0).getX(),
(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)
{
// g.fillRect((int)positions.get(i).getX(),

Loading…
Cancel
Save