onlinecodesimulator/data/levels.json

396 lines
10 KiB
JSON

[
{
"name": "Level 1",
"robots": {
"player": {
"position": {
"x": 200,
"y": 200
}
}
},
"waypoints": [
{
"position": {
"x": 420,
"y": 200
},
"vertices": [
{
"x": -50,
"y": -50
},
{
"x": 50,
"y": -50
},
{
"x": 50,
"y": 50
},
{
"x": -50,
"y": 50
}
],
"strokeColor": "#0000FF",
"fillColor": "#0000CC"
},
{
"position": {
"x": 50,
"y": 200
},
"vertices": [
{
"x": -50,
"y": -50
},
{
"x": 50,
"y": -50
},
{
"x": 50,
"y": 50
},
{
"x": -50,
"y": 50
}
],
"strokeColor": "#0000FF",
"fillColor": "#0000CC"
}
],
"obstacles": [
{
"vertices": [
{
"x": -100,
"y": -100
},
{
"x": 100,
"y": -100
},
{
"x": 100,
"y": 100
},
{
"x": -100,
"y": 100
}
],
"position": {
"x": 800,
"y": 300
},
"strokeColor": "#999999",
"fillColor": "#CCCCCC"
},
{
"vertices": [
{
"x": -10,
"y": -10
},
{
"x": 1010,
"y": -10
},
{
"x": 1010,
"y": 10
},
{
"x": -10,
"y": 10
}
],
"position": {
"x": 500,
"y": 0
},
"strokeColor": "#999999",
"fillColor": "#CCCCCC"
},
{
"vertices": [
{
"x": -10,
"y": -10
},
{
"x": 1010,
"y": -10
},
{
"x": 1010,
"y": 10
},
{
"x": -10,
"y": 10
}
],
"position": {
"x": 500,
"y": 620
},
"strokeColor": "#999999",
"fillColor": "#CCCCCC"
},
{
"vertices": [
{
"x": -10,
"y": 10
},
{
"x": 10,
"y": 10
},
{
"x": 10,
"y": 610
},
{
"x": -10,
"y": 610
}
],
"position": {
"x": 0,
"y": 310
},
"strokeColor": "#999999",
"fillColor": "#CCCCCC"
},
{
"vertices": [
{
"x": -10,
"y": 10
},
{
"x": 10,
"y": 10
},
{
"x": 10,
"y": 610
},
{
"x": -10,
"y": 610
}
],
"position": {
"x": 1000,
"y": 310
},
"strokeColor": "#999999",
"fillColor": "#CCCCCC"
}
]
},
{
"name": "Level 2",
"robots": {
"player": {
"position": {
"x": 200,
"y": 200
}
}
},
"waypoints": [
{
"position": {
"x": 420,
"y": 200
},
"vertices": [
{
"x": -50,
"y": -50
},
{
"x": 50,
"y": -50
},
{
"x": 50,
"y": 50
},
{
"x": -50,
"y": 50
}
],
"strokeColor": "#0000FF",
"fillColor": "#0000CC"
},
{
"position": {
"x": 420,
"y": 500
},
"vertices": [
{
"x": -50,
"y": -50
},
{
"x": 50,
"y": -50
},
{
"x": 50,
"y": 50
},
{
"x": -50,
"y": 50
}
],
"strokeColor": "#0000FF",
"fillColor": "#0000CC"
}
],
"obstacles": [
{
"vertices": [
{
"x": -100,
"y": -100
},
{
"x": 100,
"y": -100
},
{
"x": 100,
"y": 100
},
{
"x": -100,
"y": 100
}
],
"position": {
"x": 800,
"y": 300
},
"strokeColor": "#999999",
"fillColor": "#CCCCCC"
},
{
"vertices": [
{
"x": -10,
"y": -10
},
{
"x": 1010,
"y": -10
},
{
"x": 1010,
"y": 10
},
{
"x": -10,
"y": 10
}
],
"position": {
"x": 500,
"y": 0
},
"strokeColor": "#999999",
"fillColor": "#CCCCCC"
},
{
"vertices": [
{
"x": -10,
"y": -10
},
{
"x": 1010,
"y": -10
},
{
"x": 1010,
"y": 10
},
{
"x": -10,
"y": 10
}
],
"position": {
"x": 500,
"y": 620
},
"strokeColor": "#999999",
"fillColor": "#CCCCCC"
},
{
"vertices": [
{
"x": -10,
"y": 10
},
{
"x": 10,
"y": 10
},
{
"x": 10,
"y": 610
},
{
"x": -10,
"y": 610
}
],
"position": {
"x": 0,
"y": 310
},
"strokeColor": "#999999",
"fillColor": "#CCCCCC"
},
{
"vertices": [
{
"x": -10,
"y": 10
},
{
"x": 10,
"y": 10
},
{
"x": 10,
"y": 610
},
{
"x": -10,
"y": 610
}
],
"position": {
"x": 1000,
"y": 310
},
"strokeColor": "#999999",
"fillColor": "#CCCCCC"
}
]
}
]