Commit edf0111a by BellCodeEditor

save project

parent 3061393b
Showing with 10 additions and 0 deletions
......@@ -17,6 +17,16 @@ while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
pygame.mixer.music.set_volume(a)
if event.type==locals.KEYDOWN:
if event.Key==locals.k_w:
a+=0.1
if a>1:
a=1
if event.Key==locals.k_s:
a-=0.1
if a<0:
a=0
if pygame.mixer.music.get_busy()==False:
pygame.mixer.music.play()
# 绘制画面
......
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