ajeitando a merda de guilherme ¯\_(ツ)_/¯
This commit is contained in:
@@ -72,7 +72,7 @@ def falas(personagem: tl.Turtle, text: str, tempo: float = 3) -> None:
|
||||
fala.undo()
|
||||
count += 1
|
||||
|
||||
def falar_do_roteiro(roteiro: list[tuple[str, str]], index: int, tempo: int = 3):
|
||||
def falar_do_roteiro(roteiro: list[tuple[str, str]], index: int, tempo: float = 3):
|
||||
if roteiro[index][0] == "P":
|
||||
falas(pinto, roteiro[index][1], tempo)
|
||||
elif roteiro[index][0] == "C":
|
||||
@@ -376,11 +376,9 @@ def pinto_mata_cobra() -> str:
|
||||
cobra.showturtle()
|
||||
cobra.goto(150, -121)
|
||||
|
||||
falas(cobra, "Vou te pegar!", tempo = 1.5)
|
||||
index = falar_do_roteiro(falas_dict[cena], index)
|
||||
|
||||
cobra.goto(5, -121)
|
||||
|
||||
falas(pinto, "Só que não!", tempo = 1.5)
|
||||
|
||||
tl.addshape("sprites/objetos/fogo.gif")
|
||||
fogo.shape("sprites/objetos/fogo.gif")
|
||||
@@ -388,7 +386,7 @@ def pinto_mata_cobra() -> str:
|
||||
fogo.goto(-50, -121)
|
||||
fogo.showturtle()
|
||||
|
||||
index = falar_do_roteiro(falas_dict[cena], index, tempo = 1)
|
||||
index = falar_do_roteiro(falas_dict[cena], index, tempo=1.5)
|
||||
|
||||
pause(1.5)
|
||||
|
||||
@@ -397,8 +395,9 @@ def pinto_mata_cobra() -> str:
|
||||
|
||||
fogo.hideturtle()
|
||||
|
||||
index = falar_do_roteiro(falas_dict[cena], index, tempo = 1)
|
||||
|
||||
index = falar_do_roteiro(falas_dict[cena], index, tempo=4.5)
|
||||
index = falar_do_roteiro(falas_dict[cena], index)
|
||||
|
||||
tl.addshape("sprites/personagens/pinto_.gif")
|
||||
pinto.shape("sprites/personagens/pinto_.gif")
|
||||
|
||||
Reference in New Issue
Block a user