Commit e0a1be3c by BellCodeEditor

save project

parent 3a62f923
Showing with 14 additions and 3 deletions
......@@ -2,11 +2,22 @@ import pygame
# 初始化pygame,为使用pygame做准备
pygame.init()
from pygame import locals
# 创建一个窗口
pygame.display.set_mode((660,480))
from pygame import locals
sc=pygame.display.set_mode((660,480))
bd=pygame.image.load('bg.png')
red=pygame.image.load('apple.png')
body=pygame.image.load('body.png')
right=pygame.image.load('right.png')
sc.blit(bd,(0,0))
sc.blit(red,(360,300))
sc.blit(right,(240,120))
sc.blit(body,(210,120))
sc.blit(body,(180,120))
sc.blit(body,(180,90))
pygame.display.update()
while True:
for event in pygame.event.get():
print(event)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment