Commit 7435ac4c by BellCodeEditor

save project

parent c6188a1e
Showing with 23 additions and 4 deletions
a.jpg

55.2 KB

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