Explorar el Código

adding a few things

shuvit hace 5 años
padre
commit
15f2dbc880
Se han modificado 2 ficheros con 12 adiciones y 11 borrados
  1. 2
    2
      Startup.py
  2. 10
    9
      controller2.py

+ 2
- 2
Startup.py Ver fichero

139
     dict['spawned_npc_decks'] = []
139
     dict['spawned_npc_decks'] = []
140
     dict['spawned_npc_trucks'] = []    
140
     dict['spawned_npc_trucks'] = []    
141
     dict['spawned_npcs'] = []
141
     dict['spawned_npcs'] = []
142
-    dict['JUMPHEIGHT'] = 800
143
-    dict['MAX_VEL'] = 6.7
142
+    #dict['JUMPHEIGHT'] = 800
143
+    #dict['MAX_VEL'] = 6.7
144
     dict['char_loaded'] = 0
144
     dict['char_loaded'] = 0
145
     dict['man_sens_l'] = .03
145
     dict['man_sens_l'] = .03
146
     dict['man_sens_r'] = .08
146
     dict['man_sens_r'] = .08

+ 10
- 9
controller2.py Ver fichero

187
 
187
 
188
     #setable
188
     #setable
189
     MAX_VEL = dict['MAX_VEL']
189
     MAX_VEL = dict['MAX_VEL']
190
-    SPEEDUP = .055
191
-    SPEEDPUMP = .14 #.09
192
-    SPEEDPUMPFAST = .16 #.13
193
-    PUMP_SPEED_SENS = .4
194
-    PUMP_SENS = .98
195
-    ACCEL = 10
196
-    CRUISE = 9
197
-    COUNTDOWN = 20 #pump and speed stuff
190
+    SPEEDUP = dict['SPEEDUP']
191
+    SPEEDPUMP = dict['SPEEDPUMP']
192
+    SPEEDPUMPFAST = dict['SPEEDPUMPFAST']
193
+    PUMP_SPEED_SENS = dict['PUMP_SPEED_SENS']
194
+    PUMP_SENS = dict['PUMP_SENS']
195
+    ACCEL = dict['ACCEL']
196
+    CRUISE = dict['CRUISE']
197
+    COUNTDOWN = dict['COUNTDOWN'] #pump and speed stuff
198
     JUMPHEIGHT = dict['JUMPHEIGHT'] #775#750
198
     JUMPHEIGHT = dict['JUMPHEIGHT'] #775#750
199
     JUMPSTRENGTH = 0
199
     JUMPSTRENGTH = 0
200
     own['flip_manual_stance'] = 0
200
     own['flip_manual_stance'] = 0
832
         velocity = own['velocity']
832
         velocity = own['velocity']
833
         #switch
833
         #switch
834
         local = True
834
         local = True
835
-        downforce = -.1        
835
+        downforce = dict['pump_downforce']       
836
         lF_air_frame = own['lF_air_frame']
836
         lF_air_frame = own['lF_air_frame']
837
         frames_since_ground = own['framenum'] - own['lF_air_frame']     
837
         frames_since_ground = own['framenum'] - own['lF_air_frame']     
838
         if linVelocity.x < MAX_VEL and linVelocity.x >= -0 and STANCE == 1 and grindHit == False and frames_since_ground > 30 and own['last_manual_v2'] == 0:            
838
         if linVelocity.x < MAX_VEL and linVelocity.x >= -0 and STANCE == 1 and grindHit == False and frames_since_ground > 30 and own['last_manual_v2'] == 0:            
1588
             distance = own.getDistanceTo(gray.hitPosition)
1588
             distance = own.getDistanceTo(gray.hitPosition)
1589
             since_grind_buf = 3
1589
             since_grind_buf = 3
1590
             if gray.hitObject != None and grindDar2.triggered == False and (frame - lgf) > since_grind_buf:
1590
             if gray.hitObject != None and grindDar2.triggered == False and (frame - lgf) > since_grind_buf:
1591
+                #add or colliding
1591
                 if distance < .5:  
1592
                 if distance < .5:  
1592
                     own.alignAxisToVect(gray.hitNormal, 2, .1)
1593
                     own.alignAxisToVect(gray.hitNormal, 2, .1)
1593
                 elif distance >= .5 and distance < 1.75:  
1594
                 elif distance >= .5 and distance < 1.75:  

Loading…
Cancelar
Guardar