質問編集履歴
2
提示コードを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -3,6 +3,20 @@
|
|
3
3
|
`function BoxCollision()`関数が利用できると思うのですが出来ません。これはなぜでしょうか?他のクラスは参照できます。
|
4
4
|
|
5
5
|
参考サイト: https://techacademy.jp/magazine/39793
|
6
|
+
|
7
|
+
##### Console
|
8
|
+
```
|
9
|
+
PillBox_Mng.js:66 Uncaught ReferenceError: BoxCollision is not defined
|
10
|
+
at PillBox_Chip.Collision (PillBox_Mng.js:66:13)
|
11
|
+
at PillBox.Collision (PillBox_Mng.js:173:35)
|
12
|
+
at PillBox_Mng.Collision_Bullet_Enemy (PillBox_Mng.js:264:48)
|
13
|
+
at Game.Update (Game.js:316:30)
|
14
|
+
at draw (Main.js:17:12)
|
15
|
+
at p5._main.default.redraw (p5.js:70809:27)
|
16
|
+
at _draw (p5.js:63046:25)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
6
20
|
|
7
21
|
##### PillBox.js
|
8
22
|
```js
|
1
文章を修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
提示コードですが`index.html`のように`Collision.js`の次に`PiilBox.js`を読み込んでいるので
|
3
3
|
`function BoxCollision()`関数が利用できると思うのですが出来ません。これはなぜでしょうか?他のクラスは参照できます。
|
4
4
|
|
5
|
-
|
5
|
+
参考サイト: https://techacademy.jp/magazine/39793
|
6
6
|
|
7
7
|
##### PillBox.js
|
8
8
|
```js
|