| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 
 | local Skeleton = class("Skeleton", function()return display.newSprite()
 end)
 
 
 function Skeleton:ctor()
 
 ccs.ArmatureDataManager:getInstance():addArmatureFileInfo("cyborg.png", "cyborg.plist", "cyborg.xml")
 
 
 
 local armature3 = ccs.Armature:create("cyborg")
 armature3:getAnimation():play("run")
 armature3:setPosition(display.cx, display.cy)
 self:addChild(armature3)
 
 end
 
 
 return Skeleton
 
 |