From 942d900ca78bafaaa665ea8e01a0be7f6fd5218f Mon Sep 17 00:00:00 2001 From: Jurandy Soares Date: Fri, 8 Nov 2024 20:23:46 +0000 Subject: [PATCH] feat: Tartaruga no formato de foguete. --- fisica/lancamento.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/fisica/lancamento.py b/fisica/lancamento.py index 5debb4d..bfeb977 100644 --- a/fisica/lancamento.py +++ b/fisica/lancamento.py @@ -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()