Commit 39d274f6 by BellCodeEditor

auto save

parent c4ceae77
Showing with 3 additions and 0 deletions
import pygame import pygame
from pygame import locals from pygame import locals
import random
pygame.init() # 初始化 pygame.init() # 初始化
# 创建一个窗口 # 创建一个窗口
...@@ -18,8 +19,10 @@ hero = [pygame.image.load('hero1.png'), ...@@ -18,8 +19,10 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero4.png'), pygame.image.load('hero4.png'),
pygame.image.load('hero5.png'),] pygame.image.load('hero5.png'),]
index = 0 index = 0
st_x=1000
t=30 t=30
y=400 y=400
obstacle=
jumpstate='runing' jumpstate='runing'
while True: while True:
......
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