Commit 57c37256 by BellCodeEditor

auto save

parent c6188a1e
Showing with 25 additions and 4 deletions
2.png

58.5 KB

import pygame import pygame
import sys
# 初始化pygame,为使用pygame做准备 WIDTH = 660
HEIGHT = 480
pygame.init() pygame.init()
# 创建一个窗口 screen=pygame.display.set_mode((WIDTH,HEIGHT))
?? bg=pygame.image.load("2.png")
\ No newline at end of file right=pygame.image.load("right.png")
body=pygame.image.load("body.png")
apple=pygame.image.load("apple.png")
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
screen.blit(bg,(0,0))
screen.blit(right,(120,120))
screen.blit(body,(90,120))
screen.blit(body,(60,120))
screen.blit(body,(60,150))
screen.blit(apple,(360,360))
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