Commit 5f9f067c by BellCodeEditor

auto save

parent ed229627
Showing with 12 additions and 0 deletions
import pygame
from pygame import locals
pygame.init()
screen=pygame.display.set_mode((640,480))
pygame.mixer.music.load('歌曲4.ogg')
pygame.mixer.music.play()
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
\ No newline at end of file
...@@ -16,6 +16,7 @@ while True: ...@@ -16,6 +16,7 @@ while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type==locals.QUIT: if event.type==locals.QUIT:
exit() exit()
if pygame.mixer.music.get_busy
# 绘制画面 # 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景 screen.blit(bg_img, (0, 0)) # 填充背景
......
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