質問編集履歴
2
コードミス
test
CHANGED
File without changes
|
test
CHANGED
@@ -88,9 +88,9 @@
|
|
88
88
|
|
89
89
|
let y2 = 300;
|
90
90
|
|
91
|
-
let dx2 =
|
91
|
+
let dx2 = 60;
|
92
92
|
|
93
|
-
let dy2 =
|
93
|
+
let dy2 = 60;
|
94
94
|
|
95
95
|
let vx2 = 3;
|
96
96
|
|
1
不要なコードの除去
test
CHANGED
File without changes
|
test
CHANGED
@@ -98,16 +98,6 @@
|
|
98
98
|
|
99
99
|
|
100
100
|
|
101
|
-
let sabunA = x1 + dx1 - x2;
|
102
|
-
|
103
|
-
let sabunB = x2 + dx2 - x1;
|
104
|
-
|
105
|
-
let sabunC = y1 + dy1 - y2;
|
106
|
-
|
107
|
-
let sabunD = y2 + dy2 - y1;
|
108
|
-
|
109
|
-
|
110
|
-
|
111
101
|
// 物体動作のメインループ
|
112
102
|
|
113
103
|
setInterval(main, 1000/60);
|