-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (29 loc) · 1.5 KB
/
index.html
File metadata and controls
35 lines (29 loc) · 1.5 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>tiled-map game | codinger-cutie on GitHub</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="tiled-map-game-container">
<div id="map-container">
<div id="map"></div>
</div>
<div id="mobile-dpad" style="width: 90px; height: 90px; background-color: blue; position: absolute; left: 2.5%; bottom: 5%;">
<!-- to move d-pad to the right add this in CSS 'left: 75.5%;' -->
<!-- to move d-pad to the left add this in CSS 'left: 2.5%;' -->
<div style="width: 30px; height: 30px; display: hidden; float: left;"></div>
<button id="move-up" style="width: 30px; height: 30px; float: left;" class="mobile-controls-button">↑</button>
<div style="width: 30px; height: 30px; display: hidden; float: left;"></div>
<button id="move-left" style="width: 30px; height: 30px; float: left;" class="mobile-controls-button">←</button>
<div style="width: 30px; height: 30px; display: hidden; float: left;"></div>
<button id="move-right" style="width: 30px; height: 30px; float: left;" class="mobile-controls-button">→</button>
<div style="width: 30px; height: 30px; display: hidden; float: left;"></div>
<button id="move-down" style="width: 30px; height: 30px; float: left;" class="mobile-controls-button">↓</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>