From 34790107a3a31bd541f9e71c231d3755b0b172a4 Mon Sep 17 00:00:00 2001 From: ai6s4 Date: Fri, 19 Dec 2025 11:39:51 +0300 Subject: [PATCH] Added player --- android_game.py | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/android_game.py b/android_game.py index 143e15c..0b24f50 100644 --- a/android_game.py +++ b/android_game.py @@ -10,16 +10,28 @@ screen.title("Asteroid Game") screen.tracer(0) # === CREATE PLAYER === - - +player = turtle.Turtle() +player.hideturtle() +player.color("#00FFFF") +player.penup() +player.goto(0,-250) +player.emoji = "🚗" +player_speed = 20 # === GAME VARIABLES === - - +game_active = True +asteroides =[] # === FUNCTIONS === +def draw_player(): + player.clear() + player.write(player.emoji, align="center", + font=("Arial",32, "normal")) + draw_player() + screen.update() + turtle.done() # === TEST CODE === # Uncomment this to test: # draw_player() # screen.update() -# turtle.done() \ No newline at end of file +# turtle.done()