Make patron screen scroll time a variable

This commit is contained in:
Grant Sanderson 2020-04-09 12:51:49 -07:00
parent 427ad698fe
commit 1525d5ff16

View file

@ -155,6 +155,7 @@ class PatreonEndScreen(PatreonThanks, PiCreatureScene):
"capitalize": True,
"name_y_spacing": 0.6,
"thanks_words": "Many thanks to this channel's supporters",
"scroll_time": 20,
}
def construct(self):
@ -250,7 +251,7 @@ class PatreonEndScreen(PatreonThanks, PiCreatureScene):
columns.target.to_edge(DOWN, buff=4)
vect = columns.target.get_center() - columns.get_center()
distance = get_norm(vect)
wait_time = 20
wait_time = self.scroll_time
always_shift(
columns,
direction=normalize(vect),