Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用Java开发了一个蛇游戏。问题是我在游戏运行时看到闪烁。谁能告诉我为什么会发生这种情况并指导我找到可能的解决方案?
游戏的代码可以在这里找到。
你考虑过双缓冲吗?
查看您的代码,以下是潜在原因呢?
Thread.sleep(1000)