使用flip更新
This commit is contained in:
parent
dcf925ca52
commit
c6dba1d175
@ -97,7 +97,7 @@ class Control():
|
|||||||
while not self.done:
|
while not self.done:
|
||||||
self.event_loop()
|
self.event_loop()
|
||||||
self.update()
|
self.update()
|
||||||
pg.display.update()
|
pg.display.flip()
|
||||||
self.clock.tick(self.fps)
|
self.clock.tick(self.fps)
|
||||||
print('game over')
|
print('game over')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user