|
@@ -104,13 +104,13 @@ def main():
|
104
|
104
|
ogrot = own.orientation
|
105
|
105
|
ogrot = player_e
|
106
|
106
|
|
107
|
|
- # if (framenum - gsf) > 15:
|
108
|
|
- # velx = linVelocity2.x
|
109
|
|
- # vely = linVelocity2.y
|
110
|
|
- # #print("limit speed")
|
111
|
|
- # else:
|
112
|
|
- # velx = linVelocity2.x
|
113
|
|
- # vely = linVelocity2.y
|
|
107
|
+ if (framenum - gsf) > 15:
|
|
108
|
+ velx = linVelocity2.x
|
|
109
|
+ vely = linVelocity2.y
|
|
110
|
+ #print("limit speed")
|
|
111
|
+ else:
|
|
112
|
+ velx = linVelocity2.x
|
|
113
|
+ vely = linVelocity2.y
|
114
|
114
|
if abs(own['pregrind_vely']) > abs(vely) and own['LAST_GRIND'] == 0:
|
115
|
115
|
convely = own['pregrind_vely']
|
116
|
116
|
else:
|