{
    "type": "sprite",
    "name": "Spike",
    "sprite": {
        "texture": "./media/images/objects/solid-spike.png",
        "anchor": {"x": 0.5, "y": 0.5}
    },
    "components": {
        "AABBComponent": {
            "width": 32,
            "height": 32
        },
        "BodyComponent": {
            "allowMultipleCollide": false,
            "shapes": [
                {
                    "name": "body",
                    "offset": {"x": 0, "y": 0},
                    "offsetRotation": 0,
                    "polygon": {
                        "vertices": [
                            {"x": -13, "y": 16},
                            {"x": -13, "y": -18},
                            {"x": 13, "y": -18},
                            {"x": 13, "y": 16}
                        ]
                    }
                }
            ]
        },
        "CollisionComponent": {
            "collidesWith": {
                "tiles": false,
                "objects": true
            },
            "resolveFor": {
                "tiles": false,
                "objects": false
            },
            "resolvable": true,
            "groups": [
                "hazard"
            ],
            "targetAndGroups": [
            ],
            "targetOrGroups": [
                "ally"
            ],
            "friction": {
                "x": 0.9
            }
        },
        "ScriptsComponent": {
            "sensorBodyCollide": ["BodyAttack"]
        },
        "StatsComponent": {
            "maxHitPoints": 10,
            "damage": 3,
            "force": 200
        }
    }
}