import pygame import math def update(): pass def draw(): screen.fill((0, 0, 0)) mouse_x, mouse_y = pygame.mouse.get_pos() eye_x = 200 eye_y = 200 distance_x = mouse_x - eye_x distance_y = mouse_y - eye_y distance = math.sqrt(distance_x**2 + distance_y**2) screen.draw.filled_circle((eye_x, eye_y), 50, color=(255, 255, 255)) screen.draw.filled_circle((200, 200), 15, color=(0, 0, 100)) screen.draw.text( 'distance x: ' + str(distance_x) + '\n' + 'distance y: ' + str(distance_y) + '\n' + 'distance: ' + str(distance), (0, 0) )