質問編集履歴
6
htmlを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -108,6 +108,54 @@
|
|
108
108
|
|
109
109
|
```
|
110
110
|
|
111
|
+
```html
|
112
|
+
|
113
|
+
<!DOCTYPE html>
|
114
|
+
|
115
|
+
<meta charset="UTF-8">
|
116
|
+
|
117
|
+
<title>Kawaz Advent Calendar 2014-12-25</title>
|
118
|
+
|
119
|
+
<style>
|
120
|
+
|
121
|
+
body{
|
122
|
+
|
123
|
+
background: #eee;
|
124
|
+
|
125
|
+
}
|
126
|
+
|
127
|
+
canvas{
|
128
|
+
|
129
|
+
background: #000;
|
130
|
+
|
131
|
+
display: block;
|
132
|
+
|
133
|
+
margin: auto;
|
134
|
+
|
135
|
+
}
|
136
|
+
|
137
|
+
</style>
|
138
|
+
|
139
|
+
<img id="player" src="img/player.png">
|
140
|
+
|
141
|
+
<img id="enemy" src="img/enemy.png">
|
142
|
+
|
143
|
+
<img id="player_bullet" src="img/player_bullet.png">
|
144
|
+
|
145
|
+
<img id="enemy_bullet" src="img/enemy_bullet.png">
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
<canvas width='240' height='320'><canvas>
|
150
|
+
|
151
|
+
<script src="js/shooting.js"></script>
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
```
|
158
|
+
|
111
159
|
|
112
160
|
|
113
161
|
###補足情報(言語/FW/ツール等のバージョンなど)
|
5
タイトルを具体的に
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
JavaScript
|
1
|
+
JavaScriptのCanvasが使えません
|
test
CHANGED
File without changes
|
4
画像
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
サイト中ほどの**キャンパスに描画する**の項目がクリアできません。
|
16
16
|
|
17
|
-
|
17
|
+
![エラーメッセージスクリーンショット](6de8f4531e850c925127c95ab9b1b6c8.png)
|
18
18
|
|
19
19
|
|
20
20
|
|
3
初心者マーク
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
2
書式
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
シューティングゲームを始めて作ります。
|
2
2
|
|
3
3
|
JavaScriptでシューティングゲームを作っています。
|
4
4
|
|
@@ -16,9 +16,15 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
+
|
20
|
+
|
19
21
|
###ソースコード
|
20
22
|
|
23
|
+
```javascript
|
24
|
+
|
21
25
|
"use strict"
|
26
|
+
|
27
|
+
|
22
28
|
|
23
29
|
// 全体で使用する変数を定義
|
24
30
|
|
@@ -100,7 +106,7 @@
|
|
100
106
|
|
101
107
|
console.log(message2);
|
102
108
|
|
103
|
-
|
109
|
+
```
|
104
110
|
|
105
111
|
|
106
112
|
|
1
書式
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
Uncaught TypeError: Cannot read property 'getContext' of null
|
14
14
|
|
15
|
-
サイト中ほどのキャンパスに描画するの項目がクリアできません。
|
15
|
+
サイト中ほどの**キャンパスに描画する**の項目がクリアできません。
|
16
16
|
|
17
17
|
|
18
18
|
|