set maximum number of elements to 24

This commit is contained in:
Pavel 2020-09-26 00:22:15 +02:00
parent 9832464512
commit acaf4e6ff6
1 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ def escape(event):
def add(event):
global path, index
if len(path) < 28:
if len(path) < 24:
index += 1
path.append((0.0, 0.5))
aller_selon(path)
@ -112,8 +112,8 @@ def draw_help():
def draw_path():
global path
canvas.create_text(4, screen_h + 4, anchor = NW, text = '%s' % path[0:14], fill = 'black')
canvas.create_text(4, screen_h + 20, anchor = NW, text = '%s' % path[14:28], fill = 'black')
canvas.create_text(4, screen_h + 4, anchor = NW, text = '%s' % path[0:12], fill = 'black')
canvas.create_text(4, screen_h + 20, anchor = NW, text = '%s' % path[12:24], fill = 'black')
def draw_score(score):
canvas.create_text(4, screen_h + 52, anchor = NW, text = 'score: %f' % score, fill = 'black')