Commit befe858c by BellCodeEditor

auto save

parent d7d7416d
Showing with 26 additions and 5 deletions
import pygame
from pygame import locals
pygame.init()
pygame.init()
screen=pygame.display.set_mode((1000,600))
bg=pygame.image.load('bgpng')
road=pygame.image.load('bgpng')
stone=pygame.image.load('bgpng')
screen = pygame.display.set_mode((1000, 600))
FPS = pygame.time.Clock()
background = pygame.image.load('bg.png')
road = pygame.image.load('road.png')
stone = pygame.image.load('stone.png')
cacti = pygame.image.load('cacti.png')
apple = pygame.image.load('bush.png')
hero=[pygame.image.load('hero1.png')]
index = 0
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
if event.type == locals.KEYDOWN:
if event.key == locals.K_SPACE:
jumpState="up"
screen.blit(background,(0,0))
screen.blit(road,(0,500))
screen.blit(hero,(150,0)),ds.z.z..ZZ、。/.a//z/z/z/z/z/zZzz、、、、、、、、、、、、、?、?、、?
pygame.display.update()
\ No newline at end of file
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