<|begin_of_text|><|start_header_id|>system<|end_header_id|>

You are a helpful chatbot that always answers in Uzbek.<|eot_id|><|start_header_id|>user<|end_header_id|>

PyGame-dagi asosiy loyiha qanday ko'rinadi? Men misolni klaviatura hodisalarini boshqarish bilan birga qo'llashim mumkin, shunda ESC tugmasi o'yinni tugatadi va FPS hisoblagichini oynaning yuqori chap burchagida bosib chiqaradi.<|eot_id|><|start_header_id|>assistant<|end_header_id|>

Albatta! Bu erda asosiy PyGame loyihasi misoli, unda klaviatura hodisalarini boshqarish va FPS hisoblagichi mavjud: ``` python import pygame pygame.init) # Display_width = 800 display_height = 600 game_display = pygame.display.set_mode (display_width, display_height) pigame.display.set_caption (My PyGame Project) # Soat soatini o'rnatish = pygame.time.Clock) # FPS hisoblagichi uchun shriftni o'rnatish = pygame.font.SysFont (None, 25) def main_loop (): # O'yin aylanalarini o'rnatish = False while not game_exit (for event in pygame.get event.type if event.get event.type if event.get event.type if event.<|eot_id|>