Commit 7d528016 by BellCodeEditor

auto save

parent d6e76c8e
Showing with 18 additions and 6 deletions
import pygame import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
a=pygame.display.set_mode((720,600))
# 创建一个窗口 b=pygame.image.load('bg.png')
a=pygame.display.set_mode((800,600)) c=pygame.image.load('right.png')
\ No newline at end of file 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