accurately calculate maxdelay
This commit is contained in:
parent
1e507de739
commit
32327b7b02
1 changed files with 4 additions and 2 deletions
|
@ -19,16 +19,18 @@ def introFrames(parameters):
|
|||
targets = {}
|
||||
|
||||
frames = 5*fps
|
||||
maxdelay = int(frames/2)
|
||||
maxdelay = 0
|
||||
|
||||
for tile in tiles:
|
||||
delay = rnd.randint(0, frames)
|
||||
maxdelay = max(maxdelay, delay)
|
||||
targets[tile] = (
|
||||
# x/y
|
||||
rnd.randint(-1200, -800),
|
||||
rnd.randint(-600, 600),
|
||||
|
||||
# delay
|
||||
rnd.randint(0, maxdelay)
|
||||
delay
|
||||
)
|
||||
|
||||
# 5 Sekunde Kacheln zusammenbauen
|
||||
|
|
Loading…
Add table
Reference in a new issue