{
    "type": "character",
    "name": "Hero",
    "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/player/feet1.png",
            "animations": {
                "walk": [
                    "./media/images/player/feet1.png",
                    "./media/images/player/feet1.png",
                    "./media/images/player/feet2.png",
                    "./media/images/player/feet2.png",
                    "./media/images/player/feet3.png",
                    "./media/images/player/feet3.png",
                    "./media/images/player/feet2.png",
                    "./media/images/player/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/player/player.png",
            "animations": {
                "walk": [
                    "./media/images/player/body1.png",
                    "./media/images/player/body1.png",
                    "./media/images/player/body2.png",
                    "./media/images/player/body2.png",
                    "./media/images/player/body3.png",
                    "./media/images/player/body3.png",
                    "./media/images/player/body2.png",
                    "./media/images/player/body2.png"
                ]
            }
        }
    ],
    "components": {
        "AABBComponent": {
            "width": 24,
            "height": 28,
            "offset": {
                "x": 0,
                "y": 1
            }
        },
        "BodyComponent": {
            "allowMultipleCollide": false,
            "shapes": [
                {
                    "name": "body",
                    "offset": {"x": 0, "y": 1},
                    "offsetRotation": 0,
                    "circle-0": {
                        "radius": 12
                    },
                    "box": {
                        "width": 20,
                        "height": 24
                    },
                    "polygon-0": {
                        "vertices": [
                            {"x": -5, "y": 0},
                            {"x": 5, "y": 0},
                            {"x": 0, "y": -5}
                        ]
                    }
                }
            ]
        },
        "MovementComponent": {
            "friction": {
                "x": 0.5,
                "y": 0
            }
        },
        "CollisionComponent": {
            "collidesWith": {
                "tiles": true,
                "objects": true
            },
            "resolveFor": {
                "tiles": true,
                "objects": true
            },
            "groups": [
                "ally"
            ],
            "targetAndGroups": [
            ],
            "targetOrGroups": [
                "ally",
                "region",
                "hazard",
                "usable"
            ]
        },
        "StatsComponent": {
            "acceleration": {"x": 20, "y": 20},
            "maxMoveSpeed": {"x": 180, "y": 180},
            "gravity": {"x": 0, "y": 18.0},
            "jumpAcceleration": -300,
            "maxHitPoints": 9,
            "damage": 1,
            "invincibility": 500,
            "weight": 1
        },
        "StatusDisplayComponent": {
            "displayHp": true
        },
        "ScriptsComponent": {
            "justDeath": ["PlayerDeath"]
        },
        "ActionComponent": {
            "actions": ["Jump", "WalkLeft", "WalkRight", "Run", "Use", "MainAttack"]
        },
        "AnimationComponent": {},
        "SfxComponent": {}
    }
}