Commit 6606f4a0 by BellCodeEditor

auto save

parent 022ec8df
Showing with 14 additions and 1 deletions
import pygame
from pygame import locals
pygame.init()
screen=pygame.display.set_mode((100,600))
backgrond=pygame.image.load('bg.png')
road=pygame.image.load('rd.png')
stone=pygame.image.load('st.png')
ri=pygame.image.load('ri.png')
ben=pygame.image.load('ben.png')
qv=pygame.image.load('qv.png')
si=pygame.image.load('si.png')
hero=pygame.image.load('ho.png')
\ No newline at end of file
...@@ -13,7 +13,7 @@ cacti = pygame.image.load('cacti.png') # 仙人掌 ...@@ -13,7 +13,7 @@ cacti = pygame.image.load('cacti.png') # 仙人掌
apple = pygame.image.load('bush.png') # 灌木丛 apple = pygame.image.load('bush.png') # 灌木丛
hero = pygame.image.load('hero1.png') hero = pygame.image.load('hero1.png')
index = 0 index = 0
c
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
......
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