Commit 9ff6a006 by BellCodeEditor

auto save

parent c6188a1e
Showing with 20 additions and 5 deletions
q.png

25 KB

import pygame import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
background=pygame.image.load("bg.png")
# 创建一个窗口 tou=pygame.image.load("right.png")
?? shen=pygame.image.load("body.png")
\ No newline at end of file guo=pygame.image.load("apple.png")
chen=pygame.image.load("q.png")
screen=pygame.display.set_mode((800,600))
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
screen.blit(background,(0,0))
screen.blit(tou,(270,120))
screen.blit(shen,(240,120))
screen.blit(shen,(210,120))
screen.blit(shen,(180,120))
screen.blit(guo,(390,330))
screen.blit(chen,(90,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