From ac2cf5d13bba5ffd9005b004f42cf45f6410243f Mon Sep 17 00:00:00 2001 From: ai6s1 Date: Fri, 19 Dec 2025 11:42:47 +0300 Subject: [PATCH] Added player --- android_game.py | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/android_game.py b/android_game.py index af43664..c1f36d3 100644 --- a/android_game.py +++ b/android_game.py @@ -10,16 +10,29 @@ 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 +asteroids = [] # === 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()