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 = {}
|
targets = {}
|
||||||
|
|
||||||
frames = 5*fps
|
frames = 5*fps
|
||||||
maxdelay = int(frames/2)
|
maxdelay = 0
|
||||||
|
|
||||||
for tile in tiles:
|
for tile in tiles:
|
||||||
|
delay = rnd.randint(0, frames)
|
||||||
|
maxdelay = max(maxdelay, delay)
|
||||||
targets[tile] = (
|
targets[tile] = (
|
||||||
# x/y
|
# x/y
|
||||||
rnd.randint(-1200, -800),
|
rnd.randint(-1200, -800),
|
||||||
rnd.randint(-600, 600),
|
rnd.randint(-600, 600),
|
||||||
|
|
||||||
# delay
|
# delay
|
||||||
rnd.randint(0, maxdelay)
|
delay
|
||||||
)
|
)
|
||||||
|
|
||||||
# 5 Sekunde Kacheln zusammenbauen
|
# 5 Sekunde Kacheln zusammenbauen
|
||||||
|
|
Loading…
Add table
Reference in a new issue