Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
84 lines (79 loc) · 5.58 KB
/
Copy pathindex.html
File metadata and controls
84 lines (79 loc) · 5.58 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#3d0245" />
<title>CSS Only Skeleton Sprite Sheets Game</title>
<meta name="title" content="CSS Only Skeleton Sprite Sheets Game" />
<meta name="description" content="CSS Only Skeleton Sprite Sheets Game made with CSS only" />
<meta name="author" content="Developer Zahid" />
<meta name="keywords" content="CSS Skeleton Games, css, CSS, CSS Only Games, infinite, css-only, animation-css, css-animation-effects, css-game, Sprite Sheets, Sprite Sheets Game, CSS Sprite Sheets Games, developer-zahid" />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:site_name" content="CSS Only Skeleton Sprite Sheets Game" />
<meta property="og:url" content="https://developer-zahid.github.io/CSS-Only-Skeleton-Sprite-Sheets-Game/" />
<meta property="og:title" content="CSS Only Skeleton Sprite Sheets Game" />
<meta property="og:description" content="CSS Only Skeleton Sprite Sheets Game made with CSS only" />
<meta property="og:image" content="https://developer-zahid.github.io/CSS-Only-Skeleton-Sprite-Sheets-Game/images/github-preview.png" />
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://developer-zahid.github.io/CSS-Only-Skeleton-Sprite-Sheets-Game/" />
<meta property="twitter:title" content="CSS Only Skeleton Sprite Sheets Game" />
<meta property="twitter:description" content="CSS Only Skeleton Sprite Sheets Game made with CSS only" />
<meta property="twitter:image" content="https://developer-zahid.github.io/CSS-Only-Skeleton-Sprite-Sheets-Game/images/github-preview.png" />
<!-- Favicon Link -->
<link rel="icon" type="image/png" sizes="512x512" href="https://developer-zahid.github.io/CSS-Only-Skeleton-Sprite-Sheets-Game/images/favicon/android-chrome-512x512.png" />
<link rel="icon" type="image/png" sizes="192x192" href="https://developer-zahid.github.io/CSS-Only-Skeleton-Sprite-Sheets-Game/images/favicon/android-chrome-192x192.png" />
<link rel="apple-touch-icon" sizes="180x180" href="https://developer-zahid.github.io/CSS-Only-Skeleton-Sprite-Sheets-Game/images/favicon/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="https://developer-zahid.github.io/CSS-Only-Skeleton-Sprite-Sheets-Game/images/favicon/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="https://developer-zahid.github.io/CSS-Only-Skeleton-Sprite-Sheets-Game/images/favicon/favicon-16x16.png" />
<link rel="icon" type="image/x-icon" href="https://developer-zahid.github.io/CSS-Only-Skeleton-Sprite-Sheets-Game/images/favicon/favicon.ico" />
<link rel="manifest" href="https://developer-zahid.github.io/CSS-Only-Skeleton-Sprite-Sheets-Game/images/favicon/site.webmanifest" />
<link rel="preload" as="image" href="https://developer-zahid.github.io/CSS-Only-Skeleton-Sprite-Sheets-Game/images/skeleton-explode-spritesheet.webp" />
<link rel="preload" as="image" href="https://developer-zahid.github.io/CSS-Only-Skeleton-Sprite-Sheets-Game/images/skeleton-transform-spritesheet.webp" />
<link rel="preload" as="image" href="https://developer-zahid.github.io/CSS-Only-Skeleton-Sprite-Sheets-Game/images/skeleton-chasing-spritesheet.webp" />
<link rel="preload" as="image" href="https://developer-zahid.github.io/CSS-Only-Skeleton-Sprite-Sheets-Game/images/bg.webp" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Rubik:wght@700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="./css/style.css" />
<style>
:root {
--background-image: url('https://developer-zahid.github.io/CSS-Only-Skeleton-Sprite-Sheets-Game/images/bg.webp');
--skeleton-explode-image: url('https://developer-zahid.github.io/CSS-Only-Skeleton-Sprite-Sheets-Game/images/skeleton-explode-spritesheet.webp');
--skeleton-explode-width: 14580px;
--skeleton-explode-height: 751px;
--skeleton-explode-step: 12;
--skeleton-transform-image: url('https://developer-zahid.github.io/CSS-Only-Skeleton-Sprite-Sheets-Game/images/skeleton-transform-spritesheet.webp');
--skeleton-transform-width: 13365px;
--skeleton-transform-height: 751px;
--skeleton-transform-step: 11;
--skeleton-chasing-image: url('https://developer-zahid.github.io/CSS-Only-Skeleton-Sprite-Sheets-Game/images/skeleton-chasing-spritesheet.webp');
--skeleton-chasing-width: 15795px;
--skeleton-chasing-height: 751px;
--skeleton-chasing-step: 13;
}
</style>
</head>
<body>
<main class="wrapper">
<input type="radio" name="direction" value="left" id="left">
<input type="radio" name="direction" value="right" id="right" checked>
<label class="btn" for="left">
<span class="btn__text">Left</span>
</label>
<button class="btn" type="button" data-value="chasing">
<span class="btn__text">Run</span>
</button>
<button class="btn" type="button" data-value="explode">
<span class="btn__text">Blast</span>
</button>
<label class="btn" for="right">
<span class="btn__text">Right</span>
</label>
<div class="bg"></div>
<div class="canvas"></div>
</main>
</body>
</html>