This repository was archived by the owner on May 18, 2026. It is now read-only.
forked from scratchfoundation/scratch-gui
-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathkoshien-snippets.json
More file actions
114 lines (114 loc) · 4.51 KB
/
Copy pathkoshien-snippets.json
File metadata and controls
114 lines (114 loc) · 4.51 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"koshien.connect_game": {
"snippet": "koshien.connect_game(name: ${1:\"player1\"})",
"description": "プレイヤー名を (player1) にして、ゲームサーバへ接続する"
},
"koshien.set_message": {
"snippet": "koshien.set_message(${1:\"hello\"})",
"description": "メッセージを (hello) にする"
},
"koshien.move_to": {
"snippet": "koshien.move_to(${1:\"0:0\"})",
"description": "座標 (0:0) に移動する"
},
"koshien.get_map_area": {
"snippet": "koshien.get_map_area(${1:\"0:0\"})",
"description": "座標 (0:0) 付近のマップ情報を取得する"
},
"koshien.map": {
"snippet": "koshien.map(${1:\"0:0\"})",
"description": "座標 (0:0) のマップ情報"
},
"koshien.calc_goal_route": {
"snippet": "koshien.calc_route(result: list(${4:\"$最短経路\"}))",
"description": "ゴールまでの最短経路をリスト [最短経路] に保存する"
},
"koshien.calc_route": {
"snippet": "koshien.calc_route(result: list(${1:\"$最短経路\"}), src: ${2:\"0:0\"}, dst: ${3:\"0:0\"}, except_cells: list(${4:\"$通らない座標\"}))",
"description": "最短経路 (始点 座標 (0:0) 終点 座標 (0:0) 通らない座標 リスト [通らない座標]) をリスト [最短経路] に保存する"
},
"koshien.set_dynamite": {
"snippet": "koshien.set_dynamite(${1:\"0:0\"})",
"description": "ダイナマイトを座標 (0:0) に置く"
},
"koshien.set_bomb": {
"snippet": "koshien.set_bomb(${1:\"0:0\"})",
"description": "爆弾を座標 (0:0) に置く"
},
"koshien.map_all": {
"snippet": "$すべてのマップ情報 = koshien.map_all",
"description": "すべてのマップ情報"
},
"koshien.map_from": {
"snippet": "$マップ情報 = koshien.map_from(${1:\"0:0\"}, ${2:$すべてのマップ情報})",
"description": "座標 (0:0) のマップ情報を [すべてのマップ情報] から読み込む"
},
"koshien.locate_objects": {
"snippet": "koshien.locate_objects(result: list(${1:\"$地形・アイテムの座標\"}), cent: ${2:\"0:0\"}, sq_size: ${3:5}, objects: ${4:\"ABCD\"})",
"description": "範囲内の地形・アイテム (中心 座標 (0:0) 、範囲 (5) 、地形・アイテム (ABCD) )をリスト [地形・アイテムの座標] に保存する"
},
"koshien.other_player": {
"snippet": "koshien.other_player",
"description": "[対戦キャラクタ] の [座標]"
},
"koshien.other_player_x": {
"snippet": "koshien.other_player_x",
"description": "[対戦キャラクタ] の [x座標]"
},
"koshien.other_player_y": {
"snippet": "koshien.other_player_y",
"description": "[対戦キャラクタ] の [y座標]"
},
"koshien.player": {
"snippet": "koshien.player",
"description": "[プレイヤー] の [座標]"
},
"koshien.player_x": {
"snippet": "koshien.player_x",
"description": "[プレイヤー] の [x座標]"
},
"koshien.player_y": {
"snippet": "koshien.player_y",
"description": "[プレイヤー] の [y座標]"
},
"koshien.enemy": {
"snippet": "koshien.enemy",
"description": "[妨害キャラクター] の [座標]"
},
"koshien.enemy_x": {
"snippet": "koshien.enemy_x",
"description": "[妨害キャラクター] の [x座標]"
},
"koshien.enemy_y": {
"snippet": "koshien.enemy_y",
"description": "[妨害キャラクター] の [y座標]"
},
"koshien.goal": {
"snippet": "koshien.goal",
"description": "[ゴール] の [x座標]"
},
"koshien.goal_x": {
"snippet": "koshien.goal_x",
"description": "[ゴール] の [x座標]"
},
"koshien.goal_y": {
"snippet": "koshien.goal_y",
"description": "[ゴール] の [y座標]"
},
"koshien.turn_over": {
"snippet": "koshien.turn_over",
"description": "ターンを終了する"
},
"koshien.position_of_x": {
"snippet": "koshien.position_of_x(${1:\"0:0\"})",
"description": "(0:0) の [x座標]"
},
"koshien.position_of_y": {
"snippet": "koshien.position_of_y(${1:\"0:0\"})",
"description": "(0:0) の [y座標]"
},
"koshien.object": {
"snippet": "koshien.object(${1:\"unknown\"})",
"description": "[未探索のマス]"
}
}