Commit 7d528016 by BellCodeEditor

auto save

parent d6e76c8e
Showing with 18 additions and 6 deletions
import pygame
# 初始化pygame,为使用pygame做准备
from pygame import locals
pygame.init()
# 创建一个窗口
a=pygame.display.set_mode((800,600))
\ No newline at end of file
a=pygame.display.set_mode((720,600))
b=pygame.image.load('bg.png')
c=pygame.image.load('right.png')
d=pygame.image.load('apple.png')
e=pygame.image.load('body.png')
while True:
for event in pygame.event.get():
if event .type == 12:
exit()
a.blit(b,(0,0))
a.blit(c,(240,120))
a.blit(d,(360,300))
a.blit(e,(210,120))
a.blit(e,(180,120))
a.blit(e,(180,90))
pygame.display.update()
\ 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