~facundo/enjuewemela/trunk

« back to all changes in this revision

Viewing changes to enjuewemela/cocos/test/sample_skeleton.py

  • Committer: facundo at com
  • Date: 2010-11-20 01:42:31 UTC
  • mfrom: (62.1.3 lint-issues)
  • Revision ID: facundo@taniquetil.com.ar-20101120014231-b2tkyc3mwr84ggcc
Project reorder and lint issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from cocos.skeleton import Bone, Skeleton
2
 
def Point2(*args): return args
3
 
root_bone = Bone('torso', 70, -180.0, Point2(0.00, 0.00)).add(
4
 
    Bone('brazo der', 40, 152.308491558, Point2(34.00, -67.00))    .add(
5
 
        Bone('antebrazo der', 40, 121.203546669, Point2(-4.00, -36.00))
6
 
)
7
 
).add(
8
 
    Bone('brazo izq', 40, 222.115898576, Point2(-10.00, -70.00))    .add(
9
 
        Bone('antebrazo izq', 40, 123.385130709, Point2(3.00, -47.00))
10
 
)
11
 
).add(
12
 
    Bone('muslo izq', 40, 225.0, Point2(-10.00, 5.00))    .add(
13
 
        Bone('pierna izq', 40, -60.5241109968, Point2(3.00, -44.00))
14
 
)
15
 
).add(
16
 
    Bone('muslo der', 40, 179.587915727, Point2(18.00, 5.00))    .add(
17
 
        Bone('pierna der', 40, -31.2908540886, Point2(4.00, -47.00))
18
 
)
19
 
).add(
20
 
    Bone('cabeza', 20, -9.90592089762, Point2(2.00, -94.00))
21
 
)
22
 
 
23
 
 
24
 
skeleton = Skeleton( root_bone )
 
 
b'\\ No newline at end of file'