質問編集履歴
2
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,7 +8,33 @@
|
|
8
8
|
|
9
9
|
### 該当のソースコード
|
10
10
|
|
11
|
+
```html
|
11
12
|
|
13
|
+
<!DOCTYPE html>
|
14
|
+
|
15
|
+
<html>
|
16
|
+
|
17
|
+
<head>
|
18
|
+
|
19
|
+
<meta charset="utf-8">
|
20
|
+
|
21
|
+
<title>sample</title>
|
22
|
+
|
23
|
+
<script src="../../jquery-3.5.1.min.js"></script>
|
24
|
+
|
25
|
+
</head>
|
26
|
+
|
27
|
+
<body>
|
28
|
+
|
29
|
+
<canvas id="canvas"></canvas>
|
30
|
+
|
31
|
+
<script type="text/javascript" src="main.js"></script>
|
32
|
+
|
33
|
+
</body>
|
34
|
+
|
35
|
+
</html>
|
36
|
+
|
37
|
+
```
|
12
38
|
|
13
39
|
```JavaScript
|
14
40
|
|
1
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -13,6 +13,8 @@
|
|
13
13
|
```JavaScript
|
14
14
|
|
15
15
|
var map = [
|
16
|
+
|
17
|
+
[ 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1],
|
16
18
|
|
17
19
|
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1],
|
18
20
|
|
@@ -38,9 +40,7 @@
|
|
38
40
|
|
39
41
|
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1],
|
40
42
|
|
41
|
-
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1,
|
43
|
+
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 5],
|
42
|
-
|
43
|
-
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1],
|
44
44
|
|
45
45
|
];
|
46
46
|
|