Commit d701fffb by BellCodeEditor

save project

parent 3558d8a3
Showing with 19 additions and 6 deletions
import pygame import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
screen=pygame.display.set_mode((660,480))
b = pygame.image.load('bg.png')
p = pygame.image.load('apple.png')
s = pygame.image.load('right.png')
t = pygame.image.load('body.png')
while True:
screen.blit(b,(0,0))
screen.blit(p,(120,0))
screen.blit(s,(240,120))
screen.blit(t,(210,120))
screen.blit(t,(180,120))
screen.blit(t,(150,120))
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
pygame.display.update()
\ No newline at end of file
# 创建一个窗口
screen=pygame.display.set_mode((800,800))
b=pygame.image.
\ 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