Commit 096c372f by BellCodeEditor

save project

parent c075cadc
Showing with 19 additions and 0 deletions
import pygame
from pygame import locals
pygame.init()
screen = pygame.set mode((640,480))
bg ing = pygame.image.load('background.png')
play ing = pygame.image.load('play.png')
pygame
while true:
for event in pygame.event in
if event.type == locals.QUIT
exit()
if event.type == locals.KEYDOWN:
if event.key == locals.k w:
volume += 0.1
if event.key
volume = 1
pygame.mixer
...@@ -26,6 +26,7 @@ while True: ...@@ -26,6 +26,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 event.type == locals.KEYDOWN: if event.type == locals.KEYDOWN:
if event.key == locals.K_UP: if event.key == locals.K_UP:
volume += 0.1 volume += 0.1
......
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