Commit 9e99dcdc by BellCodeEditor

save project

parent 7bbf6dea
Showing with 17 additions and 2 deletions
import pygame import pygame
from pygame import locals
pygame.init() pygame.init()
b = pygame.image.load("bg.png")
c = pygame.image.load("right.png")
d = pygame.image.load("apple.png")
e = pygame.image.load("body.png")
# 创建一个窗口 # 创建一个窗口
pygame.display.set_mode((660,480)) _= pygame.display.set_mode((660,480))
while True:
for a in pygame.event.get():
if a.type == locals.QUIT:
exit()
_.blit(b,(0,0))
_.blit(c,(210,120))
_.blit(d,(120,210))
_.blit(e,(180,120))
_.blit(e,(150,120))
_.blit(e,(150,90))
pygame.display.update()
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