mirror of
https://forge.apps.education.fr/blender-edutech/ropy.git
synced 2024-01-27 08:23:20 +01:00
Déplacement du rp_fin(), décor : cratères
This commit is contained in:
parent
14221c863c
commit
d1d9fc9a15
Binary file not shown.
BIN
ropy-34.blend
BIN
ropy-34.blend
Binary file not shown.
@ -30,14 +30,16 @@ def commandes():
|
||||
# Ecrire votre code ici ...
|
||||
rp_avancer()
|
||||
|
||||
rp_fin() # A garder
|
||||
|
||||
###############################################################################
|
||||
# En: External call << DONT CHANGE THIS SECTION >>
|
||||
# Fr: Appel externe << NE PAS MODIFIER CETTE SECTION >>
|
||||
###############################################################################
|
||||
|
||||
def cycle():
|
||||
commandes()
|
||||
rp_fin()
|
||||
|
||||
if __name__=='start':
|
||||
thread_cmd_start(commandes)
|
||||
thread_cmd_start(cycle)
|
||||
if __name__=='stop':
|
||||
thread_cmd_stop()
|
||||
|
28
rp_cmd.py
28
rp_cmd.py
@ -32,16 +32,18 @@ def commandes():
|
||||
|
||||
print ('Go go go ...')
|
||||
|
||||
# mrp_avancer()
|
||||
# mrp_avancer()
|
||||
# mrp_avancer()
|
||||
mrp_avancer()
|
||||
mrp_avancer()
|
||||
mrp_avancer()
|
||||
|
||||
rp_gauche()
|
||||
while rp_detect()==False:
|
||||
rp_avancer()
|
||||
rp_droite()
|
||||
while rp_detect()==False:
|
||||
rp_avancer()
|
||||
while True:
|
||||
rp_droite()
|
||||
|
||||
# while rp_detect()==False:
|
||||
# rp_avancer()
|
||||
# rp_droite()
|
||||
# while rp_detect()==False:
|
||||
# rp_avancer()
|
||||
|
||||
# rp_avancer()
|
||||
# rp_droite()
|
||||
@ -53,14 +55,16 @@ def commandes():
|
||||
# rp_avancer()
|
||||
# rp_marquer()
|
||||
|
||||
rp_fin() # A garder
|
||||
|
||||
###############################################################################
|
||||
# En: External call << DONT CHANGE THIS SECTION >>
|
||||
# Fr: Appel externe << NE PAS MODIFIER CETTE SECTION >>
|
||||
###############################################################################
|
||||
|
||||
def cycle():
|
||||
commandes()
|
||||
rp_fin()
|
||||
|
||||
if __name__=='start':
|
||||
thread_cmd_start(commandes)
|
||||
thread_cmd_start(cycle)
|
||||
if __name__=='stop':
|
||||
thread_cmd_stop()
|
||||
|
@ -3,9 +3,9 @@
|
||||
<speed>4.0</speed>
|
||||
<sound>False</sound>
|
||||
<cam>
|
||||
<worldPosition.x>-3.7522060871124268</worldPosition.x>
|
||||
<worldPosition.y>-18.188343048095703</worldPosition.y>
|
||||
<worldPosition.z>15.865280151367188</worldPosition.z>
|
||||
<worldPosition.x>2.3307816982269287</worldPosition.x>
|
||||
<worldPosition.y>-43.80031204223633</worldPosition.y>
|
||||
<worldPosition.z>36.77288055419922</worldPosition.z>
|
||||
</cam>
|
||||
<screen>
|
||||
<width>1639</width>
|
||||
@ -14,8 +14,8 @@
|
||||
</screen>
|
||||
</config>
|
||||
<mission>
|
||||
<current>6</current>
|
||||
<level>6</level>
|
||||
<current>1</current>
|
||||
<level>1</level>
|
||||
</mission>
|
||||
<upgrade>
|
||||
<battery>True</battery>
|
||||
|
@ -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)
|
||||
while scene.objects['Rv-Wheel-right-front'].isPlayingAction(): # Forçage du redraw
|
||||
# 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)
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user