{
    "type": "character",
    "name": "Skeleton",
    "parts": [
        {
            "name": "feet",
            "anchor": {"x": 0.5, "y": 0.5},
            "position": {"x": 2, "y": 10},
            "rotation": 0,
            "scale": {"x": 1, "y": 1},
            "defaultTexture": "./media/images/skeleton/feet1.png",
            "animations": {
                "walk": [
                    "./media/images/skeleton/feet1.png",
                    "./media/images/skeleton/feet1.png",
                    "./media/images/skeleton/feet2.png",
                    "./media/images/skeleton/feet2.png",
                    "./media/images/skeleton/feet3.png",
                    "./media/images/skeleton/feet3.png",
                    "./media/images/skeleton/feet2.png",
                    "./media/images/skeleton/feet2.png"
                ]
            }
        },
        {
            "name": "body",
            "anchor": {"x": 0.5, "y": 0.5},
            "position": {"x": 0, "y": 0},
            "rotation": 0,
            "scale": {"x": 1, "y": 1},
            "defaultTexture": "./media/images/skeleton/player.png",
            "animations": {
                "walk": [
                    "./media/images/skeleton/body1.png",
                    "./media/images/skeleton/body1.png",
                    "./media/images/skeleton/body2.png",
                    "./media/images/skeleton/body2.png",
                    "./media/images/skeleton/body3.png",
                    "./media/images/skeleton/body3.png",
                    "./media/images/skeleton/body2.png",
                    "./media/images/skeleton/body2.png"
                ]
            }
        }
    ],
    "components": {
        "AABBComponent": {
            "width": 24,
            "height": 24
        },
        "BodyComponent": {
            "allowMultipleCollide": false,
            "shapes": [
                {
                    "name": "body",
                    "offset": {"x": 0, "y": 0},
                    "offsetRotation": 0,
                    "circle": {
                        "radius": 12
                    }
                }
            ]
        },
        "MovementComponent": {
            "friction": {
                "x": 0.5,
                "y": 0
            }
        },
        "CollisionComponent": {
            "collidesWith": {
                "tiles": true,
                "objects": true
            },
            "resolveFor": {
                "tiles": true,
                "objects": false
            },
            "groups": [
                "enemy"
            ],
            "targetAndGroups": [
            ],
            "targetOrGroups": [
                "ally"
            ]
        },
        "StatsComponent": {
            "acceleration": {"x": 20, "y": 20},
            "maxMoveSpeed": {"x": 60, "y": 60},
            "gravity": {
                "x": 0,
                "y": 18.0
            },
            "maxHitPoints": 2,
            "damage": 1,
            "force": 100
        },
        "ScriptsComponent": {
            "sensorBodyCollide": ["BodyAttack"],
            "justDeath": ["RemoveOnDeath"]
        },
        "ActionComponent": {
            "actions": ["WalkLeftNoFlip", "WalkRightNoFlip", "SkeletonMainAttack"]
        },
        "AnimationComponent": {},
        "AIComponent": {
            "scripts": ["SkeletonAI", "TargetRadiusAI", "ActiveTriggerAI"]
        },
        "LayerComponent": {
            "layer": "object"
        },
        "SfxComponent": {}
    }
}