{ "gameLoop":
{ "modelFPS": 60 },

  "logic":
  { "nrOfRounds": 30,

    "labels":
    { "start":    "Spiel starten",
      "pause":    "Spiel pausieren",
      "continue": "Spiel fortsetzen",
      "stop":     "Spiel beenden"
    },

    "ball":
    { "class":  "ModelBall",
      "view":   "ball",
      "r":       15,
      "x":      300,
      "y":      200,
      "vx":     {"@@min":  50, "@@max": 50, "@@positive": 0.5},
      "vy":     {"@@min":  50, "@@max": 50, "@@positive": 0.5},
      "zLayer": 1
    }
  },

  "model":
  { "stage":
  { "class": "ModelStage",
    "width":  600,
    "height": 400,
    "zLayer":   0
  },

    "paddle1":
    { "class": "ModelPaddle",
      "view":  "paddle",

      "x":           5,
      "y":         200,
      "width":     100,
      "height":    200,
      "xAnchor":   0.0,
      "yAnchor":   0.5,

      "vyMoving":  150,
      "ayMoving": 1000,

      "friction":  0.3,
      "zLayer":      1
    },

    "paddle2":
    { "class": "ModelPaddle",
      "view":  "paddle",

      "x":         595,
      "y":         200,
      "width":     100,
      "height":    200,
      "xAnchor":   1.0,
      "yAnchor":   0.5,

      "vyMoving":  150,
      "ayMoving": 1000,

      "friction":  0.3,
      "zLayer":      1
    },

    "counter1":
    { "class": "ModelText",
      "view":  "counter",
      "x":     20,
      "y":     20,
      "text":   0,
      "zLayer": 2
    },

    "counter2":
    { "class":  "ModelText",
      "view":   "counter",
      "x":      580,
      "y":       20,
      "xAnchor":  1,
      "text":     0,
      "zLayer":   2
    },

    "result":
    { "class":        "ModelText",
      "view":         "result",
      "x":            18,
      "y":            60,
      "text":         "",
      "textTemplate": "Spieler $1 hat gewonnen",
      "visible":      true,
      "zLayer":       3
    },

    "startStopButton":
    { "class":  "ModelButton",
      "view":   "button",
      "idHTML": "button_start_stop",
      "value":  "Spiel starten",
      "visible": true,
      "enabled": true,
      "event":  "EventStartStop"
    },

    "pauseButton":
    { "class":   "ModelButton",
      "view":    "button",
      "idHTML":  "button_pause_continue",
      "value":   "Spiel pausieren",
      "visible": true,
      "enabled": false,
      "event":   "EventPauseContinue"
    }
  },

  "view":
  { "ball":
  { "class":       "ViewBall",
    "border":      0,
    "borderColor": { "@color": "#888888" },
    "color":       { "@color": "#FFAA00" }
  },

    "paddle":
    { "class":  "ViewPaddle",
      "border": 0,
      "color":  { "@color": "#999999" }
    },

    "counter":
    { "class":      "ViewText",
      "fontFamily": ["Verdana", "Helvetica", "sans-serif"],
      "fontSize":   "20px"
    },

    "result":
    { "class":      "ViewText",
      "fontFamily": ["Verdana", "Helvetica", "sans-serif"],
      "fontSize":   "35px",
      "fontStyle":  "bold"
    },

    "button":
    { "class":   "ViewButton",
      "control": "controlButton"
    }
  },

  "control":
  { "paddle1":
  { "control": "controlPaddle",
    "model":   "paddle1",
    "up":      {"key": "W", "keyCode": 87},
    "down":    {"key": "X", "keyCode": 88}
  },

    "paddle2":
    { "control": "controlPaddle",
      "model":   "paddle2",
      "up":      {"key": "ArrowUp",   "keyCode": 38},
      "down":    {"key": "ArrowDown", "keyCode": 40}
    }
  }
}