用Python编写【地铁酷跑】游戏。
gameState=None#游戏状态(0,1)表示(游戏中,游戏结束)surObject=None#障碍物图片。object=None#障碍物对象。surGameOver=None#游戏结束图片。bg=None#背景对象。role=None#人物对象。myFont=myFont1=None#字体。
·
width = 1200 #窗口宽度
height = 508 #窗口高度
size = width, height
score=None #分数
myFont=myFont1=None #字体
surObject=None #障碍物图片
surGameOver=None #游戏结束图片
bg=None #背景对象
role=None #人物对象
object=None #障碍物对象
objectList=[] #障碍物对象数组
clock=None #时钟
gameState=None #游戏状态(0,1)表示(游戏中,游戏结束)
更多推荐
所有评论(0)