Commit 95c52a02 by BellCodeEditor

auto save

parent b5e2b02d
Showing with 7 additions and 3 deletions
import os
filelist = os.listdir("C:\\Users\\oo\\Desktop\\text")
print(filelist)
\ No newline at end of file
...@@ -41,7 +41,7 @@ while True: ...@@ -41,7 +41,7 @@ while True:
if event.type == locals.MOUSEBUTTONDOWN: if event.type == locals.MOUSEBUTTONDOWN:
if event.button == 1: if event.button == 1:
x,y = event.pos x,y = event.pos
if x > 270 and x <370 and y > 350 and y < 450: if x > 270 and x < 370 and y > 350:
# 次数增加 # 次数增加
click += 1 click += 1
if click % 2 == 0: if click % 2 == 0:
...@@ -53,8 +53,8 @@ while True: ...@@ -53,8 +53,8 @@ while True:
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
pygame.mixer.music.play() pygame.mixer.music.play()
num+1
# 绘制画面 # 绘制num+1画面
screen.blit(bg_img, (0, 0)) # 填充背景 screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(play_button, (270, 330)) # 暂停按钮 screen.blit(play_button, (270, 330)) # 暂停按钮
screen.blit(logo_img, (170, 60)) # 中间logo图 screen.blit(logo_img, (170, 60)) # 中间logo图
......
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