整理
This commit is contained in:
parent
c967c56c54
commit
ecd511495d
@ -639,4 +639,4 @@ CHOOSE = 'choose'
|
||||
PLAY = 'play'
|
||||
|
||||
# 无穷大常量
|
||||
INF = float("inf")
|
||||
INF = float("inf") # python传递字符串性能较低,故在这里对inf声明一次,以后仅需调用即可
|
||||
|
||||
@ -30,7 +30,7 @@ class Screen(tool.State):
|
||||
self.rect.y = 0
|
||||
|
||||
def update(self, surface, current_time, mouse_pos, mouse_click):
|
||||
if(current_time - self.start_time) < self.end_time:
|
||||
if (current_time - self.start_time) < self.end_time:
|
||||
surface.fill(c.WHITE)
|
||||
surface.blit(self.image, self.rect)
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user