-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
96 lines (91 loc) · 3.66 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Map Game</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
<h1>42 So Long Map Maker</h1>
<a href="https://github.com/BenBohle" target="_blank">
<img src="img/github_logo_long.png" id="github-link" alt="Github Repository" width="100">
</a>
</header>
<div id="modal" class="modal">
<div class="modal-content" id="modal-content">
<h2>Some Informations:</h2>
<p>With this map maker you can visually design your own maps for your so_long project and export them as a number map.<br />
Although it's still under development, you can choose different pencils to customize your map with walls, floor, collectibles and even enemies with your specific character (like "A" or a number).</p>
<p>if you wanna scale your map (width & height) up you may have to use the zoom function.</p>
<p style="color: red;">BE CAREFUL: zoom in may cause page freeze at the moment</p>
<p><strong>coming soon:</strong></p>
<p>- <strong>Map Generato</strong>r (generate tons of maps that automatically follow the rules or are suitable for evaluations)<br />
- <strong>multiple pencil settings</strong> (like size) and tools like "<strong>fill an area</strong>"<br />
- <strong>Custom start fill</strong> (at the moment it's the Floor)<br />
- <strong>Better Map graphics</strong> (if you have good ones push them ;) )</p>
<button id="close-modal">Okay</button>
</div>
</div>
<div id="toolbar">
<input id="select-value" type="hidden"></input>
<div class="toolbar-item-group" id="floor">
<label for="nw">Width</label>
<input id="nw" type="number" value="10" />
<label for="nh">Height</label>
<input id="nh" type="number" value="10" />
<label for="enemy-ident">Enemy Identification</label>
<input id="enemy-ident" type="text" value="F" />
</div>
<p>Zoom out</p>
<input type="range" min="0.1" max="1" value="1" step="0.1" id="zoom-slider">
<div class="toolbar-item-group" id="floor">
<h3>Pencils</h3>
<div class="toolbar-pencils">
<div class="pencil" id="pencil-wall">
<img src="img/wall-symbol.png" alt="pencil wall" width="70px"/>
<p>Wall</p>
</div>
<div class="pencil" id="pencil-floor">
<img src="img/way-symbol.png" alt="pencil floor" width="70px"/>
<p>Floor</p>
</div>
<div class="pencil" id="pencil-collectible">
<img src="img/coin.png" alt="pencil collectible" width="70px"/>
<p>collectible</p>
</div>
<div class="pencil" id="pencil-player">
<img src="img/start-symbol.png" alt="pencil player" width="70px"/>
<p>Player/Start</p>
</div>
<div class="pencil" id="pencil-enemy">
<img src="img/enemy-symbol.png" alt="pencil enemy" width="70px"/>
<p>Enemy</p>
</div>
<div class="pencil" id="pencil-delete" style="position: absolute; top: 35px; right: 30px;">
<img src="img/rubber-symbol.png" alt="pencil delete" width="70px"/>
<p>Rubber</p>
</div>
<div class="pencil" id="pencil-goal">
<img src="img/goal-symbol.png" alt="pencil goal" width="70px"/>
<p>Goal</p>
</div>
</div>
<br>
<button id="generate">generate</button>
<textarea id="output" placeholder="your map to copy..."></textarea>
</div>
</div>
<!-- <div id="beta-tools" class="beta-tools">
<div id="vline"></div>
<div id="hline"></div>
</div> -->
<div id="game-container">
</div>
<footer>
<a href="https://benbohle.website" target="_blank">benbohle.website</a>
</footer>
<script src="custom.js"></script>
</body>
</html>