-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
61 lines (54 loc) · 2.12 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<html>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-110926326-1');
</script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/tone/0.12.54/Tone.min.js"></script> -->
<!-- Google Tag Manager (noscript) -->
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5NN74MQ" height="0" width="0"
style="display:none;visibility:hidden"></iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->
<meta property="og:title" content="Spacewar" />
<meta property="og:url" content="https://yecapee.github.io/spacewar/dist/" />
<meta property="og:image" content="https://yecapee.github.io/spacewar/game.png" />
<meta property="og:image" content="https://yecapee.github.io/spacewar/gozilla.png" />
<meta property="og:description" content="A ptt style of space game" />
<title>SPACEWAR</title>
<body>
<audio id="bgmusic" loop>
<source src="http://grayscale.scene.pl/msx/zizibum.mp3">
</audio>
<div class="ready" id="ready">
<div class="title">
<h1>OUTERSPACE IS NO END.</h1>
<p>Developed by yecapee</p>
<p>press space or click me </p>
<p>press a, s to use special attack</p>
</div>
</div>
<div id="debug"></div>
<div id="score" unselectable="on"></div>
<div id="life"></div>
<canvas id="view"></canvas>
<img id="shipImg" src="./img/ship.png" style="display:none">
<img id="shipBulletNormal" src="./img/bullet_normal.png" style="display:none">
<img id="bulletBall" src="./img/bulletBall.png" style="display:none">
<img id="laser" src="./img/laser.png" style="display:none">
<img id="zarkImg" src="./img/zark.png" style="display:none">
<img id="explosion" src="./img/explosion.png" style="display:none">
<script>
bgmusic.volume = 0.1;
function _music() {
// bgmusic.autoplay = true;
bgmusic.play();
}
</script>
</body>
<script type="module" src="index.js"></script>
</html>