-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.html
41 lines (36 loc) · 1.85 KB
/
game.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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>チーズゲーム</title>
<meta name="description" content=“世界を変えるチーズを作ろう。チーズアカデミーは、チーズ職人を養成するための学校です。”>
<meta property="og:title" content="チーズアカデミー">
<meta property="og:type" content="website" />
<meta property="og:url" content="#" />
<meta property="og:site_name" content="チーズアカデミー" />
<meta property="og:description" content="世界を変えるチーズを作ろう。チーズアカデミーは、チーズ職人を養成するための学校です。" />
<meta name="format-detection" content="telephone=no">
<link rel="canonical" href="#">
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/sanitize.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="shortcut icon" href="favicon.ico">
<!-- スライドショーのコード用 -->
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.css">
<link rel="stylesheet" type="text/css" href="css/game.css" />
<link rel="icon" href="/img/チーズのフリーアイコン.png">
<!-- あらかじめcssを読み込んでいるので設定しなくてOK-->
</head>
<body>
<button id="start-button">スタート</button>
<!-- JavaScriptファイルでボタンにクリックリスナーを追加 -->
<div id="boy"></div>
<div id="cheese"></div>
<div id="obstacle"></div>
<div id="score">Score: <span id="score-value">0</span></div>
<div id="gameover">Game Over</div>
<script src="/js/game.js"></script>
</body>
</html>