feat: Tartaruga no formato de foguete.

This commit is contained in:
Jurandy Soares 2024-11-08 20:23:46 +00:00
parent 5d2c039a9d
commit 942d900ca7
1 changed files with 17 additions and 1 deletions

View File

@ -6,6 +6,21 @@ ALT = 600
MEIA_LARG = LARG//2
MEIA_ALT = ALT//2
pontos_foguete = (
(0, 0), # A
(5, 5), # B
(5, 15), # C
(0, 15), # D
(5, 20), # E
(10, 30), # F
(15, 20), # G
(20, 15), # H
(15, 15), # I
(15, 5), # J
(20, 0), # K
)
v0x = 10 # pixels/passo
v0y = 40 # pixels/passo
@ -19,7 +34,8 @@ def sy(pos_x: float) -> float:
def main():
turtle.setup(LARG, ALT)
turtle.shape('turtle')
turtle.register_shape('foguete', shape=pontos_foguete)
turtle.shape('foguete')
turtle.color('blue', 'red')
turtle.up()
turtle.hideturtle()