-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathblockly.json
44 lines (43 loc) · 1.97 KB
/
blockly.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{"INIT_INFO": [
["ai_name", "name of ai", "AI編號"]
],
"GAME_STATUS": [
["GAME_ALIVE", "alive", "存活"],
["GAME_PASS", "pass", "通關"],
["GAME_OVER", "over", "失敗"]
],
"SCENE_INFO": [
["scene_info['frame']", "# frame", "# 幀數"],
["scene_info['status']", "player status", "玩家狀態"],
["scene_info['id']", "player id", "玩家編號"],
["scene_info['x']", "x position of player", "玩家的 x 座標"],
["scene_info['y']", "y position of player", "玩家的 y 座標"],
["scene_info['distance']", "advanced distance of player", "玩家前進的距離"],
["scene_info['velocity']", "velocity", "玩家的速度"],
["scene_info['all_cars_pos']", "positions of all cars", "所有車子的位置"],
["scene_info['coin']", "positions of coins", "金幣的位置"],
["scene_info['coin_num']", "number of coins obtained", "獲得的金幣數量"]
],
"CONSTANT": [
[0, "left boundary", "左邊界"],
[1000, "right boundary", "右邊界"],
[0, "top boundary", "上邊界"],
[700, "bottom boundary", "下邊界"],
[60, "car length", "車子長度"],
[30, "car width", "車子寬度"],
[30, "coin length", "金幣長度"],
[31, "coin width", "金幣寬度"]
],
"ACTION": [
["['SPEED']", "speed up", "加速"],
["['BRAKE']", "brake", "減速"],
["['MOVE_LEFT']", "move left", "向左移動"],
["['MOVE_RIGHT']", "move left", "向右移動"],
["['SPEED', 'MOVE_LEFT']", "speed up and move left", "加速並向左移動"],
["['SPEED', 'MOVE_RIGHT']", "speed up and move right", "加速並向右移動"],
["['BRAKE', 'MOVE_LEFT']", "brake and move left", "減速並向左移動"],
["['BRAKE', 'MOVE_RIGHT']", "brake and move right", "減速並向右移動"],
["RESET", "RESET", "重置"],
["[]", "do nothing", "不動作"]
]
}