Commit 674e9790 by BellCodeEditor

auto save

parent c075cadc
Showing with 13 additions and 1 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
...@@ -3,7 +3,7 @@ from pygame import locals ...@@ -3,7 +3,7 @@ from pygame import locals
pygame.init() # 初始化 pygame.init() # 初始化
# 创建窗口 # 创建窗口
screen = pygame.display.set_mode((640, 480)) screen = p235ererygame.display.set_mode((640, 480))
# 载入图片、资源 # 载入图片、资源
bg_img = pygame.image.load('background.png') # 背景图 bg_img = pygame.image.load('background.png') # 背景图
play_img = pygame.image.load('play.png') # 播放按钮 play_img = pygame.image.load('play.png') # 播放按钮
......
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