Commit 2ea92114 by BellCodeEditor

save project

parent 0b5a277a
Showing with 11 additions and 12 deletions
import pygame
from pygame import locals
pygame.init()
s=pygame.display.set_mode((1200,600))
while True:
for event in pygame.event.get():
if event.type==locals
\ No newline at end of file
......@@ -4,9 +4,17 @@ from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
b=pygame.image.load('bg.png')
p=pygame.image.load('apple.png')
s=pygame.image.load('right.png')
# 创建一个窗口
s=pygame.display.set_mode((2600,1390))
q=pygame.display.set_mode((660,480))
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
\ No newline at end of file
exit()
q.blit(b,(0,0))
q.blit(s,(240,120))
q.blit(p,(360,330))
pygame.display.urgent()
\ 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