Stop JFrame's paintComponent method from painting the background

后端 未结 0 592
执念已碎
执念已碎 2021-02-01 07:53

I\'m making a snake game in java. To make it efficient, I only paint the positions that have changed this frame (the first and last cells of the snake).

Here\'s my code:<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题