Browse Source

update

main
Justin Senn 2 years ago
parent
commit
33c9d9103d
  1. 10
      src/main/java/Snake/GameView.java

10
src/main/java/Snake/GameView.java

@ -21,5 +21,15 @@ public class GameView extends JPanel
this.gridSize = gridSize;
}
@Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
for(var view : views)
{
view.draw(g);
}
Toolkit.getDefaultToolkit().sync();
}
}
Loading…
Cancel
Save