Browse Source

Update

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

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

@ -1,6 +1,7 @@
package Snake;
import java.awt.*;
import java.awt.Point;
import java.util.ArrayList;
public class SnakeView implements Drawable{
@ -30,7 +31,7 @@ public class SnakeView implements Drawable{
public void draw(Graphics g) {
g.setColor(Color.GREEN);
// g.fillRect((int)positions.get(0).getX(),
// g.fillRect((int)positions.get(0).getX(),
// (int)positions.get(0).getY(), cellSize, cellSize);
g.fillOval((int)positions.get(0).getX(),
(int)positions.get(0).getY(), cellSize, cellSize);
@ -39,7 +40,7 @@ public class SnakeView implements Drawable{
for(int i = 1; i < positions.size(); ++i)
{
// g.fillRect((int)positions.get(i).getX(),
// (int)positions.get(i).getY(), cellSize, cellSize);
// (int)positions.get(i).getY(), cellSize, cellSize);
g.fillOval((int)positions.get(i).getX(),
(int)positions.get(i).getY(), cellSize, cellSize);

Loading…
Cancel
Save