随笔分类 -  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... 阅读全文
posted @ 2016-12-05 00:31 废柴米老鼠 阅读(2380) 评论(0) 推荐(0)
摘要: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 ... 阅读全文
posted @ 2016-12-04 23:58 废柴米老鼠 阅读(2167) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2016-12-03 22:24 废柴米老鼠 阅读(2019) 评论(0) 推荐(0)