Déplacement du rp_fin(), décor : cratères

This commit is contained in:
Philippe Roy 2023-12-28 19:07:02 +01:00
parent 14221c863c
commit d1d9fc9a15
6 changed files with 29 additions and 21 deletions

Binary file not shown.

Binary file not shown.

View File

@ -30,14 +30,16 @@ def commandes():
# Ecrire votre code ici ... # Ecrire votre code ici ...
rp_avancer() rp_avancer()
rp_fin() # A garder
############################################################################### ###############################################################################
# En: External call << DONT CHANGE THIS SECTION >> # En: External call << DONT CHANGE THIS SECTION >>
# Fr: Appel externe << NE PAS MODIFIER CETTE SECTION >> # Fr: Appel externe << NE PAS MODIFIER CETTE SECTION >>
############################################################################### ###############################################################################
def cycle():
commandes()
rp_fin()
if __name__=='start': if __name__=='start':
thread_cmd_start(commandes) thread_cmd_start(cycle)
if __name__=='stop': if __name__=='stop':
thread_cmd_stop() thread_cmd_stop()

View File

@ -32,16 +32,18 @@ def commandes():
print ('Go go go ...') print ('Go go go ...')
# mrp_avancer() mrp_avancer()
# mrp_avancer() mrp_avancer()
# mrp_avancer() mrp_avancer()
rp_gauche() while True:
while rp_detect()==False: rp_droite()
rp_avancer()
rp_droite() # while rp_detect()==False:
while rp_detect()==False: # rp_avancer()
rp_avancer() # rp_droite()
# while rp_detect()==False:
# rp_avancer()
# rp_avancer() # rp_avancer()
# rp_droite() # rp_droite()
@ -53,14 +55,16 @@ def commandes():
# rp_avancer() # rp_avancer()
# rp_marquer() # rp_marquer()
rp_fin() # A garder
############################################################################### ###############################################################################
# En: External call << DONT CHANGE THIS SECTION >> # En: External call << DONT CHANGE THIS SECTION >>
# Fr: Appel externe << NE PAS MODIFIER CETTE SECTION >> # Fr: Appel externe << NE PAS MODIFIER CETTE SECTION >>
############################################################################### ###############################################################################
def cycle():
commandes()
rp_fin()
if __name__=='start': if __name__=='start':
thread_cmd_start(commandes) thread_cmd_start(cycle)
if __name__=='stop': if __name__=='stop':
thread_cmd_stop() thread_cmd_stop()

View File

@ -3,9 +3,9 @@
<speed>4.0</speed> <speed>4.0</speed>
<sound>False</sound> <sound>False</sound>
<cam> <cam>
<worldPosition.x>-3.7522060871124268</worldPosition.x> <worldPosition.x>2.3307816982269287</worldPosition.x>
<worldPosition.y>-18.188343048095703</worldPosition.y> <worldPosition.y>-43.80031204223633</worldPosition.y>
<worldPosition.z>15.865280151367188</worldPosition.z> <worldPosition.z>36.77288055419922</worldPosition.z>
</cam> </cam>
<screen> <screen>
<width>1639</width> <width>1639</width>
@ -14,8 +14,8 @@
</screen> </screen>
</config> </config>
<mission> <mission>
<current>6</current> <current>1</current>
<level>6</level> <level>1</level>
</mission> </mission>
<upgrade> <upgrade>
<battery>True</battery> <battery>True</battery>

View File

@ -495,7 +495,9 @@ def rp_droite (twins=True):
scene.objects['Rv-Wheel-left-rear'].playAction('Wheel-Avancer', start, end, layer, priority, blendin, mode, layerWeight, ipoFlags, speed) scene.objects['Rv-Wheel-left-rear'].playAction('Wheel-Avancer', start, end, layer, priority, blendin, mode, layerWeight, ipoFlags, speed)
while scene.objects['Rv-Wheel-right-front'].isPlayingAction(): # Forçage du redraw while scene.objects['Rv-Wheel-right-front'].isPlayingAction(): # Forçage du redraw
# scene.objects['Camera'].applyMovement((0, 0, 0), True) # scene.objects['Camera'].applyMovement((0, 0, 0), True)
scene.objects['Sun'].applyMovement((0, 0, 0), True) pass
# rp_sleep(0.1)
# scene.objects['Sun'].applyMovement((0, 0, 0), True)
rp_tempo (0.1) rp_tempo (0.1)
return True return True