質問編集履歴
3
タグ追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
2
スペルミス
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,9 +38,9 @@
|
|
38
38
|
|
39
39
|
for i in range (3)
|
40
40
|
|
41
|
-
self.obstacle%d_center_x = obstacle%d_center_x %(i)
|
41
|
+
self.obstacle%d_center_x %(i) = obstacle%d_center_x %(i)
|
42
42
|
|
43
|
-
self.obstacle%d_center_y = obstacle%d_center_y %(i)
|
43
|
+
self.obstacle%d_center_y %(i) = obstacle%d_center_y %(i)
|
44
44
|
|
45
45
|
|
46
46
|
|
1
スペルミス
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
def_init_(
|
6
6
|
|
7
|
-
obstacle_center_x=3.0,obstacle_center_y=3.0
|
7
|
+
obstacle_center_x=3.00,obstacle_center_y=3.00
|
8
8
|
|
9
9
|
with_obstacle = True)
|
10
10
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
self.obstacle%center_y = obstacle_center_y
|
16
16
|
|
17
|
-
```というもので、この外にほかのコードがあり、それにより位置を設定するのみでobstacleが生成されます。
|
17
|
+
```というもので、この外にほかのコードがあり、それによりcenter位置を設定するのみでobstacleが生成されます。
|
18
18
|
|
19
19
|
このobstacleを増やしたいため
|
20
20
|
|
@@ -22,11 +22,11 @@
|
|
22
22
|
|
23
23
|
def_init_(
|
24
24
|
|
25
|
-
obstacle0_center_x=8.0, obstacle0_center_y=0,
|
25
|
+
obstacle0_center_x=8.00, obstacle0_center_y=0,
|
26
26
|
|
27
27
|
obstacle1_center_x=8.00, obstacle1_center_y=-0.06,
|
28
28
|
|
29
|
-
obstacle2_center_x=8.0, obstacle2_center_y=-0.12,
|
29
|
+
obstacle2_center_x=8.00, obstacle2_center_y=-0.12,
|
30
30
|
|
31
31
|
obstacle3_center_x=8.00, obstacle3_center_y=-0.18,
|
32
32
|
|
@@ -60,7 +60,7 @@
|
|
60
60
|
|
61
61
|
def_init_(
|
62
62
|
|
63
|
-
obstacle0_center_x=8.0, obstacle0_center_y=0,
|
63
|
+
obstacle0_center_x=8.00, obstacle0_center_y=0,
|
64
64
|
|
65
65
|
obstacle1_center_x=8.00, obstacle1_center_y=-0.06,
|
66
66
|
|