forked from Pavel/labygui
set maximum number of elements to 24
This commit is contained in:
parent
9832464512
commit
acaf4e6ff6
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue