質問編集履歴
2
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,9 +20,15 @@
|
|
20
20
|
|
21
21
|
at window.onload (shooting.js:13)
|
22
22
|
|
23
|
+
```
|
24
|
+
|
23
25
|
|
24
26
|
|
25
27
|
###該当のソースコード
|
28
|
+
|
29
|
+
javascript
|
30
|
+
|
31
|
+
```
|
26
32
|
|
27
33
|
"use strict"
|
28
34
|
|
@@ -72,11 +78,13 @@
|
|
72
78
|
|
73
79
|
};
|
74
80
|
|
81
|
+
```
|
75
82
|
|
76
83
|
|
77
84
|
|
85
|
+
```html
|
78
86
|
|
79
|
-
|
87
|
+
|
80
88
|
|
81
89
|
<!DOCTYPE html>
|
82
90
|
|
@@ -118,6 +126,8 @@
|
|
118
126
|
|
119
127
|
|
120
128
|
|
129
|
+
```
|
130
|
+
|
121
131
|
###試したこと
|
122
132
|
|
123
133
|
ネットのサンプルプログラムを試したんですがダメでしたお願いします。
|
@@ -128,4 +138,4 @@
|
|
128
138
|
|
129
139
|
より詳細な情報
|
130
140
|
|
131
|
-
crhome
|
141
|
+
環境crhome
|
1
htmlのプログラムを載せました。お願いします。
test
CHANGED
File without changes
|
test
CHANGED
@@ -74,6 +74,50 @@
|
|
74
74
|
|
75
75
|
|
76
76
|
|
77
|
+
|
78
|
+
|
79
|
+
htmlは
|
80
|
+
|
81
|
+
<!DOCTYPE html>
|
82
|
+
|
83
|
+
<meta charset="UTF-8">
|
84
|
+
|
85
|
+
<title>game</title>
|
86
|
+
|
87
|
+
<style>
|
88
|
+
|
89
|
+
body {
|
90
|
+
|
91
|
+
background: #eee;
|
92
|
+
|
93
|
+
}
|
94
|
+
|
95
|
+
canvas {
|
96
|
+
|
97
|
+
background: #000;
|
98
|
+
|
99
|
+
display: block;
|
100
|
+
|
101
|
+
margin: auto;
|
102
|
+
|
103
|
+
}
|
104
|
+
|
105
|
+
</style>
|
106
|
+
|
107
|
+
<img id="player" src="img/player.png">
|
108
|
+
|
109
|
+
<img id="enemy" src="img/enemy.png">
|
110
|
+
|
111
|
+
<img id="player_bullet" src="img/player_bullet.png">
|
112
|
+
|
113
|
+
<img id="enemy_bullet" src="img/enemy_bullet.png">
|
114
|
+
|
115
|
+
<canvas width='240' height='320'></canvas>
|
116
|
+
|
117
|
+
<script src="js/shooting.js"></script>
|
118
|
+
|
119
|
+
|
120
|
+
|
77
121
|
###試したこと
|
78
122
|
|
79
123
|
ネットのサンプルプログラムを試したんですがダメでしたお願いします。
|