Commit d0304e8c by BellCodeEditor

save project

parent b320d0bd
Showing with 22 additions and 2 deletions
import pygame import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
soreen = pygame.display.set_mode((660,480)) screen = pygame.display.set_mode((800,600))
\ No newline at end of file while True:
for event in pygame.event.get():
if event.type == 12:
exit()
a = pygame.image.load("bg.png")
b = pygame.image.load("right.png")
c = pygame.image.load("apple.png")
b1 = pygame.image.load("body.png")
b2 = pygame.image.load("body.png")
b3 = pygame.image.load("body.png")
screen.blit(a,(0,0))
screen.blit(b,(240,120))
screen.blit(c,(480,240))
screen.blit(b1,(210,120))
screen.blit(b2,(180,120))
screen.blit(b3,(180,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