{
  "title": "Scaling Test",
  "picking": 2,
  "spawn": {
    "position_y": 5,
    "position_z": 25
  },
  "characters": [
    {
      "id": "test_scaling",
      "base": true,
      "spawn": false,
      "entities": [
        {
          "id": "base",
          "texture": "grid.png",
          "texture_x": 10,
          "texture_y": 10,
          "vertex_colors": [0.5, 0.5, 0.5, 1],
          "vertices": [
            50, 0, -50,
            -50, 0, -50,
            -50, 0, 50,
            50, 0, 50
          ]
        },
        {
          "id": "tree_big",
          "attach_x": -10,
          "attach_y": 6,
          "billboard": true,
          "collision": false,
          "event_todo": [
            {
              "todo": "webgl_character_scale",
              "type": "function",
              "value": {
                "id": "character",
                "x": 0.1,
                "y": 0.1,
                "z": 0.1
              }
            }
          ],
          "picking": true,
          "vertices": [
            2, 2, 0,
            -2, 2, 0,
            -2, -2, 0,
            2, -2, 0
          ]
        },
        {
          "id": "tree_small",
          "attach_x": -10,
          "attach_y": 2,
          "billboard": true,
          "collision": false,
          "event_todo": [
            {
              "todo": "webgl_character_scale",
              "type": "function",
              "value": {
                "id": "character",
                "x": -0.1,
                "y": -0.1,
                "z": -0.1
              }
            }
          ],
          "picking": true,
          "vertices": [
            2, 2, 0,
            -2, 2, 0,
            -2, -2, 0,
            2, -2, 0
          ]
        },
        {
          "id": "wall",
          "attach_z": -40,
          "rotate_x": 90,
          "scale_x": 2,
          "scale_y": 2,
          "scale_z": 2,
          "texture": "grid.png",
          "texture_x": 2,
          "texture_y": 2,
          "vertices": [
            10, 0, -10,
            -10, 0, -10,
            -10, 0, 10,
            10, 0, 10
          ]
        },
        {
          "id": "wall_big",
          "attach_x": 20,
          "attach_y": 6,
          "attach_z": -35,
          "billboard": true,
          "collision": false,
          "event_todo": [
            {
              "todo": "webgl_entity_scale",
              "type": "function",
              "value": {
                "id": "wall",
                "x": 0.1,
                "y": 0.1,
                "z": 0.1
              }
            }
          ],
          "picking": true,
          "vertices": [
            2, 2, 0,
            -2, 2, 0,
            -2, -2, 0,
            2, -2, 0
          ]
        },
        {
          "id": "wall_small",
          "attach_x": 20,
          "attach_y": 2,
          "attach_z": -35,
          "billboard": true,
          "collision": false,
          "event_todo": [
            {
              "todo": "webgl_entity_scale",
              "type": "function",
              "value": {
                "id": "wall",
                "x": -0.1,
                "y": -0.1,
                "z": -0.1
              }
            }
          ],
          "picking": true,
          "vertices": [
            2, 2, 0,
            -2, 2, 0,
            -2, -2, 0,
            2, -2, 0
          ]
        }
      ]
    },
    {
      "id": "character",
      "spawn": {
        "position_x": -25,
        "position_y": 0,
        "position_z": 0,
        "scale_x": 2,
        "scale_y": 2,
        "scale_z": 2
      }
    }
  ],
  "prefabs": [
    {
      "type": "prefabs_webgl_cuboid_tree",
      "properties": {
        "prefix": "tree",
        "character": "character"
      }
    }
  ]
}
