def __init__(self, offset): self.offset = offset self.root = root = Bone("body", 70, -180.0, (0. + self.offset, 0.)) root.add( Bone("upper right arm", 30, 120, (0, -70)).add( Bone("lower right arm", 30, 30, (0, -30)) ) ) root.add( Bone("upper left arm", 30, -120, (0, -70)).add( Bone("lower left arm", 30, -30, (0, -30)) )) root.add( Bone("right leg", 60, -150, (0, 0)) ) root.add( Bone("left leg", 60, 150, (0, 0)) ) super().__init__(self.root)
from cocos.skeleton import Bone, Skeleton def Point2(*args): return args root_bone = Bone('body', 70, -180.0, Point2(0, 0)).add( Bone('upper_arm', 30, 120, (0, -70)).add(Bone('lower_arm', 30, 30, (0, -30)))) skeleton = Skeleton(root_bone)
from __future__ import division, print_function, unicode_literals from cocos.skeleton import Bone, Skeleton #torso:躯干 brazo der:右臂 antebrazo der:前臂 #brazo izq:左臂 muslo izq:左大腿 pierna izq:左腿 #muslo der:右大腿 pierna der:右腿 #cabeza:头 def Point2(*args): return args root_bone = Bone('point', 70, 180, Point2(6.00, -46.00)).add( Bone('torso', 3, 0.0, Point2(0,0)).add(Bone('armor', 1, 180.0, Point2(65,-15)))).add( Bone('brazo der', 25, 152.308491558, Point2(34.00, -67.00)). add(Bone('antebrazo der', 40, 152.308491558, Point2(-4.00, -36.00))) ).add( Bone('muslo izq', 20, 179.587915727, Point2(-5.00, -60.00)) ).add( Bone('muslo der', 20, 179.587915727, Point2(24.00, -60.00)) ).add( Bone('point1', 3, -9.90592089762, Point2(0,0)).add(Bone('point1', 15, -9.90592089762, Point2(0,0)).add(Bone('cabeza', 20, -9.90592089762, Point2(-4.00, -94.00)).add( Bone('helmet',1,180, Point2(117,46)) ) ) )) skeleton = Skeleton( root_bone )
from __future__ import division, print_function, unicode_literals from cocos.skeleton import Bone, Skeleton def Point2(*args): return args root_bone = Bone('torso', 70, -180.0, Point2(0.00, 0.00)).add( Bone('brazo der', 40, 152.308491558, Point2(34.00, -67.00)).add( Bone('antebrazo der', 40, 121.203546669, Point2(-4.00, -36.00)))).add( Bone('brazo izq', 40, 222.115898576, Point2(-10.00, -70.00)).add( Bone('antebrazo izq', 40, 123.385130709, Point2(3.00, -47.00)))).add( Bone('muslo izq', 40, 225.0, Point2(-10.00, 5.00)).add( Bone('pierna izq', 40, -60.5241109968, Point2(3.00, -44.00))) ).add( Bone('muslo der', 40, 179.587915727, Point2(18.00, 5.00)).add( Bone('pierna der', 40, -31.2908540886, Point2(4.00, -47.00)))).add( Bone('cabeza', 20, -9.90592089762, Point2(2.00, -94.00))) skeleton = Skeleton(root_bone)
from cocos.skeleton import Bone, Skeleton def Point2(*args): return args root_bone = Bone('body', 70, -180.0, Point2(0, 0)) skeleton = Skeleton( root_bone )
from cocos.skeleton import Bone, Skeleton def Point2(*args): return args root_bone = Bone('body', 70, -180.0, Point2(0.00, 0.00)).add( Bone('upper_arm', 30, 507.2153951616356, Point2(40.00, -66.00)).add( Bone('lower_arm', 30, 34.48170986038606, Point2(0.00, -32.00)))) skeleton = Skeleton(root_bone)
from cocos.skeleton import Bone, Skeleton def Point2(*args): return args root_bone = Bone('body', 70, -183.9360034140333, Point2(-10.00, -43.00)).add( Bone('upper_arm1', 30, 602.934463049926, Point2(-31.00, -116.00)).add( Bone('lower_arm1', 30, 55.16242123536883, Point2(-2.00, -53.00)))).add( Bone('upper_arm2', 30, 473.13502769954044, Point2(25.00, -112.00)).add( Bone('lower_arm2', 30, 267.4462614921407, Point2(2.00, -57.00))) ).add(Bone('head', 30, -1.6576430948267917, Point2(0.00, -122.00))).add( Bone('upper_leg1', 30, 566.7716441184316, Point2(-18.00, -3.00)).add( Bone('lower_leg1', 30, 364.9171422299325, Point2(-2.00, -50.00)))).add( Bone('upper_leg2', 30, 523.3509496623373, Point2(18.00, 0.00)).add( Bone('lower_leg2', 30, 22.80787630729788, Point2(-1.00, -53.00)))) skeleton = Skeleton(root_bone)
return args root_bone = Bone('body', 70, -183.9360034140333, Point2(-10.00, -43.00)).add( Bone('upper_arm1', 30, 602.934463049926, Point2(-31.00, -116.00)).add( Bone('lower_arm1', 30, 25.324533635234072, Point2(-2.00, -53.00)).add( Bone('cell_phone', 30, 395.5948126227601, Point2(2.00, -57.00))))).add( Bone('upper_arm2', 30, 687.4606362631503, Point2(25.00, -112.00)).add( Bone('lower_arm2', 30, 303.42439034028035, Point2(2.00, -57.00))) ).add( Bone('head', 30, -19.470195141116847, Point2(0.00, -122.00))).add( Bone('upper_leg1', 30, 566.7716441184316, Point2(-18.00, -3.00)).add( Bone('lower_leg1', 30, 364.9171422299325, Point2(-2.00, -50.00)))).add( Bone('upper_leg2', 30, 523.3509496623373, Point2(18.00, 0.00)).add( Bone( 'lower_leg2', 30, 22.80787630729788, Point2( -1.00, -53.00)))) skeleton = Skeleton(root_bone)
from cocos.skeleton import Bone, Skeleton def Point2(*args): return args root_bone = Bone('body', 70, -183.9360034140333, Point2(-10.00, -43.00)).add( Bone('upper_arm1', 30, 780.3648630745238, Point2(-31.00, -116.00)).add( Bone('lower_arm1', 30, 372.2042830860784, Point2(-2.00, -53.00)))).add( Bone('upper_arm2', 30, 473.13502769954044, Point2(25.00, -112.00)).add( Bone('lower_arm2', 30, 258.43530956281506, Point2(2.00, -57.00)).add( Bone('cell_phone', 30, 320.2286847962665, Point2(2.00, -57.00)))) ).add(Bone('head', 30, -1.6576430948267917, Point2(0.00, -122.00))).add( Bone('upper_leg1', 30, 566.7716441184316, Point2(-18.00, -3.00)).add( Bone('lower_leg1', 30, 364.9171422299325, Point2(-2.00, -50.00)))).add( Bone('upper_leg2', 30, 523.3509496623373, Point2(18.00, 0.00)).add( Bone('lower_leg2', 30, 22.80787630729788, Point2(-1.00, -53.00)))) skeleton = Skeleton(root_bone)
root_bone = Bone('body', 70, -181.4769894842871, Point2(80.00, -48.00)).add( Bone('upper_arm1', 30, 603.071609599222, Point2(-31.00, -116.00)).add( Bone('lower_arm1', 30, -37.73392048348615, Point2(-2.00, -53.00)))).add( Bone('upper_arm2', 30, 507.1061826659556, Point2(25.00, -112.00)).add( Bone('lower_arm2', 30, -15.428819153105243, Point2(2.00, -57.00)).add( Bone('f_body', 70, 229.22448312255662, Point2(-38.00, -150.00)).add( Bone('f_upper_arm1', 30, 584.1112271775867, Point2(-31.00, -116.00)).add( Bone( 'f_lower_arm1', 30, -0.2193917324523949, Point2(-2.00, -53.00)))). add( Bone('f_upper_arm2', 30, 473.13502769954044, Point2(25.00, -112.00)).add( Bone('f_lower_arm2', 30, 267.4462614921407, Point2(2.00, -57.00))) ).add( Bone('f_head', 30, -0.905045775160882, Point2(0.00, -122.00))).add( Bone( 'f_upper_leg1', 30, 566.7716441184316, Point2(-18.00, -3.00)).add( Bone( 'f_lower_leg1', 30, 364.9171422299325, Point2( -2.00, -50.00)))). add( Bone('f_upper_leg2', 30, 523.3509496623373, Point2(18.00, 0.00)).add( Bone('f_lower_leg2', 30, 22.80787630729788, Point2(-1.00, -53.00)))))) ).add(Bone('head', 30, -14.55756347235696, Point2(-5.00, -125.00))).add( Bone('upper_leg1', 30, 566.7716441184316, Point2(-18.00, -3.00)).add( Bone('lower_leg1', 30, 364.9171422299325, Point2(-2.00, -50.00)))).add( Bone('upper_leg2', 30, 523.3509496623373, Point2(18.00, 0.00)).add( Bone( 'lower_leg2', 30, 22.80787630729788, Point2( -1.00, -53.00))))
return args root_bone = Bone('body', 70, -183.9360034140333, Point2(-10.00, -43.00)).add( Bone('upper_arm1', 30, 602.934463049926, Point2(-31.00, -116.00)).add( Bone('lower_arm1', 30, 34.43722114797783, Point2(-2.00, -53.00)).add( Bone('flower', 30, 417.28445664743737, Point2(2.00, -57.00))))).add( Bone('upper_arm2', 30, 687.4606362631503, Point2(25.00, -112.00)).add( Bone('lower_arm2', 30, 303.42439034028035, Point2(2.00, -57.00))) ).add( Bone('head', 30, -19.470195141116847, Point2(0.00, -122.00))).add( Bone('upper_leg1', 30, 566.7716441184316, Point2(-18.00, -3.00)).add( Bone('lower_leg1', 30, 364.9171422299325, Point2(-2.00, -50.00)))).add( Bone('upper_leg2', 30, 523.3509496623373, Point2(18.00, 0.00)).add( Bone( 'lower_leg2', 30, 22.80787630729788, Point2( -1.00, -53.00)))) skeleton = Skeleton(root_bone)
from cocos.skeleton import Bone, Skeleton root_bone = Bone('body', 70, -180.0, (0.00, 0.00)) skeleton = Skeleton(root_bone)
from __future__ import division, print_function, unicode_literals from cocos.skeleton import Bone, Skeleton #torso:躯干 brazo der:右臂 antebrazo der:前臂 #brazo izq:左臂 muslo izq:左大腿 pierna izq:左腿 #muslo der:右大腿 pierna der:右腿 #cabeza:头 def Point2(*args): return args root_bone = Bone('torso', 70, -180.0, Point2(0.00, 0.00)).add( Bone('cabeza', 20, -9.90592089762, Point2(2.00, -94.00))) # root_bone = Bone('torso', 70, -180.0, Point2(0.00, 0.00)).add( # Bone('brazo der', 40, 152.308491558, Point2(34.00, -67.00)) .add( # Bone('antebrazo der', 40, 121.203546669, Point2(-4.00, -36.00)) # ) # ).add( # Bone('brazo izq', 40, 222.115898576, Point2(-10.00, -70.00)) .add( # Bone('antebrazo izq', 40, 123.385130709, Point2(3.00, -47.00)) # ) # ).add( # Bone('muslo izq', 40, 225.0, Point2(-10.00, 5.00)) .add( # Bone('pierna izq', 40, -60.5241109968, Point2(3.00, -44.00)) # ) # ).add( # Bone('muslo der', 40, 179.587915727, Point2(18.00, 5.00)) .add( # Bone('pierna der', 40, -31.2908540886, Point2(4.00, -47.00)) # ) # ).add(
from cocos.skeleton import Bone, Skeleton def Point2(*args): return args root_bone = Bone('body', 70, -183.9360034140333, Point2(-10.00, -43.00)).add( Bone('upper_arm1', 30, 667.2359312032213, Point2(-31.00, -116.00)) .add( Bone('lower_arm1', 30, 55.16242123536883, Point2(-2.00, -53.00)) ) ).add( Bone('upper_arm2', 30, 456.6358013024077, Point2(25.00, -112.00)) .add( Bone('lower_arm2', 30, 352.3856149855908, Point2(2.00, -57.00)) ) ).add( Bone('head', 30, -1.6576430948267917, Point2(0.00, -122.00)) ).add( Bone('upper_leg1', 30, 566.7716441184316, Point2(-18.00, -3.00)) .add( Bone('lower_leg1', 30, 364.9171422299325, Point2(-2.00, -50.00)) ) ).add( Bone('upper_leg2', 30, 523.3509496623373, Point2(18.00, 0.00)) .add( Bone('lower_leg2', 30, 22.80787630729788, Point2(-1.00, -53.00)) ) ) skeleton = Skeleton( root_bone )
from cocos.skeleton import Bone, Skeleton def Point2(*args): return args root_bone = Bone('body', 70, -180.0, Point2(0.00, 0.00)).add( Bone('upper_arm', 30, 130.782409248, Point2(31.00, -67.00)) .add( Bone('lower_arm', 30, 83.3315481551, Point2(-2.00, -37.00)) ) ) skeleton = Skeleton( root_bone )
from __future__ import division, print_function, unicode_literals from cocos.skeleton import Bone, Skeleton #torso:躯干 brazo der:右臂 antebrazo der:前臂 #brazo izq:左臂 muslo izq:左大腿 pierna izq:左腿 #muslo der:右大腿 pierna der:右腿 #cabeza:头 def Point2(*args): return args root_bone = Bone('torso', 70, -180.0, Point2(0.00, 0.00)).add( Bone('brazo der', 40, 152.308491558, Point2(34.00, -67.00))).add( Bone('brazo izq', 40, 222.115898576, Point2(-10.00, -30.00))).add( Bone('muslo izq', 40, 225.0, Point2(-10.00, 5.00))).add( Bone('muslo der', 40, 179.587915727, Point2(18.00, 5.00))).add( Bone('cabeza', 20, -9.90592089762, Point2(2.00, -94.00))) skeleton = Skeleton(root_bone)
from cocos.skeleton import Bone, Skeleton def Point2(*args): return args root_bone = Bone('body', 70, 180, Point2( 0, 0)) #the second parameter means the length of the bone, the next is means #its angle, and 0 means the dirction of 6 o'clocl, and it is anticlockwise, the last parameter means the relative position of the knukle skeleton = Skeleton(root_bone) # from __future__ import division, print_function, unicode_literals # from cocos.skeleton import Bone, Skeleton # def Point2(*args): return args # root_bone = Bone('torso', 70, -180.0, Point2(0.00, 0.00)).add( # Bone('brazo der', 40, 152.308491558, Point2(34.00, -67.00)) .add( # Bone('antebrazo der', 40, 121.203546669, Point2(-4.00, -36.00)) # ) # ).add( # Bone('brazo izq', 40, 222.115898576, Point2(-10.00, -70.00)) .add( # Bone('antebrazo izq', 40, 123.385130709, Point2(3.00, -47.00)) # ) # ).add( # Bone('muslo izq', 40, 225.0, Point2(-10.00, 5.00)) .add( # Bone('pierna izq', 40, -60.5241109968, Point2(3.00, -44.00)) # ) # ).add( # Bone('muslo der', 40, 179.587915727, Point2(18.00, 5.00)) .add(
def Point2(*args): return args root_bone = Bone('torso', 70, -180.0, Point2(-21.00, -30.00)).add( Bone('brazo der', 40, 166.50418844655482, Point2(11.00, -84.00)).add( Bone('antebrazo der', 40, 188.9676098848677, Point2(20.00, -7.00)))).add( Bone('brazo izq', 80, 162.7435372950183, Point2(89.00, -96.00)).add( Bone('antebrazo izq', 40, 123.24018672001495, Point2(-67.00, -72.00)))).add( Bone('muslo izq', 40, 185.82860308971078, Point2(-1.00, 5.00)).add( Bone('pierna izq', 40, -69.95371317060682, Point2(0.00, -104.00))) ).add( Bone('muslo der', 40, 190.96525124743613, Point2(-10.00, 20.00)).add( Bone('pierna der', 40, -55.637708424863625, Point2(-11.00, -56.00)))).add( Bone( 'cabeza', 20, -9.90592089762, Point2(-2.00, -15.00))) skeleton = Skeleton(root_bone)