-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathgetSurroundingTiles.html
60 lines (60 loc) · 1.5 KB
/
getSurroundingTiles.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Get Surrounding Tiles function example</title>
<style>
#wrapper {
display: flex;
flex-wrap: wrap;
}
#root {
width: 1024px;
background-color: green;
display: flex;
flex-wrap: wrap;
}
.block {
width: 64px;
height: 32px;
border: 1px solid black;
box-sizing: border-box;
text-align: center;
padding-top: 6px;
}
.range {
background-color: red;
}
.element {
background-color: yellow;
}
label {
display: block;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="root"></div>
<div id="settings">
<label><input id="input-tile-id" /> Tile ID</label>
<label><input id="input-size-x" /> Main object size X</label>
<label><input id="input-size-y" /> Main object size Y</label>
<label
><input id="input-size-to-increase-x" /> Size to increase main object
X</label
>
<label
><input id="input-size-to-increase-y" /> Size to increase main object
Y</label
>
<label
><input id="input-include-main-object" type="checkbox" /> Include main
object?</label
>
<button id="btn-submit">Submit</button>
</div>
</div>
</body>
<script src="js/examples/getSurroundingTiles.js" type="module"></script>
</html>