Commit ade9139f by BellCodeEditor

save project

parent a68d356f
import pygame
from pygame import locals
screen = pygame.display.set_mode((1000,600))
pygame.display.set_caption('bellcode')
while True()
for event in pygame.event.gat():
if event.type == locals.QUIT:
exit()
import pygame
from pygame import locals
pygame.init()
sceen = pygame.display.set_mode((420,540))
music1 = pygame.mixer.Sound('歌曲1.wav')
music2 = pygame.mixer.Sound('歌曲2.wav')
music1.play()
music2.play()
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
bg.png

200 KB

bush.png

14.5 KB

cacti.png

5.58 KB

hero1.png

12.4 KB

hero2.png

10.9 KB

hero3.png

11.3 KB

hero4.png

11.5 KB

hero5.png

11.9 KB

new_logo = pygame.transform.rotate(logo_img,angle)
newRect=new_logo.get_rect(center=(320,200))
print(newRect)
angle += 1
play_time=pygame.mixer.music.get_pos()
playtime=int(play_time/1000)
play_m = play_time//60
play_s= play_time%60
info = str(play_m)+':'+str(play_s)
road.png

34.7 KB

{"第1名": 0, "第2名": 0, "第3名": 0}
\ No newline at end of file
stone.png

11.3 KB

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