Commit 7dab6c8e by BellCodeEditor

save project

parent 24416f53
Showing with 17 additions and 7 deletions
import pygame
# 初始化pygame,为使用pygame做准备
from pygame import locals
pygame.init()
# 创建一个窗口
pygame.display.set_mode(size=(660,480))
ck=pygame.display.set_mode(size=(660,480))
beijing=pygame.image.load('bg.png')
shetou=pygame.image.load('right.png')
sheshen=pygame.image.load('body.png')
pingguo=pygame.image.load('apple.png')
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
ck.blit(beijing,(0,0))
ck.blit(shetou,(240,120))
ck.blit(sheshen,(210,120))
ck.blit(sheshen,(180,120))
ck.blit(sheshen,(180,90))
ck.blit(pingguo,(600,450))
pygame.display.update()
\ No newline at end of file
pygame.image.load('bg.png')
\ No newline at end of file
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