import pygame(导入pygame)
pygame.display.set_mode((0,0)) (创建窗口)
pygame.image.load("") (加载图片,不支持gif格式哦)
pygame.各种事件
pygame.display.update() (更新所有数据)
xx.fill(rgb) (填充窗口颜色,使用RGB,xx代表窗口变量)
xx.bilt(image,(0,0)) (贴一张图片,image代表图片变量,0,0代表坐标)
下一期更详细!!更精彩
示例:
import pygame
sc = pygame.display.set_mode((100,100))#创建一个窗口 大小为100x100
image = pygame.display.load("c:\")
sc.blit(image,(0,0))
pygame.display.update()
input()