随笔分类 - pygame
摘要:1 import pygame 2 from pygame.locals import * 3 4 pygame.init() 5 screen = pygame.display.set_mode((600, 500)) 6 pygame.display.set_caption("drawing a rectangle") 7 pos_x = 300 8 pos_y = 250...
阅读全文
摘要:1 import pygame 2 from pygame.locals import * 3 4 pygame.init() 5 screen = pygame.display.set_mode((600, 500)) 6 pygame.display.set_caption("drawing a circle") 7 while True: 8 for event ...
阅读全文
摘要:1 import pygame 2 from pygame.locals import * 3 white = 255, 255, 255 4 blue = 0, 0, 200 5 pygame.init() 6 screen = pygame.display.set_mode((600, 500)) 7 myfont = pygame.font.Font(None, 70) 8...
阅读全文

浙公网安备 33010602011771号