-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (75 loc) · 2.88 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>I Am Synthetic Level Creator</title>
<link rel="stylesheet" href="css/editor.css">
<link rel="stylesheet" href="css/begin.css">
<script src="js/lib/js-yaml.min.js"></script>
<script src="js/Spritesheet.js"></script>
<script src="js/Level.js"></script>
<script src="js/Event.js"></script>
<script src="js/Text.js"></script>
<script src="js/metadataParser.js"></script>
<script src="js/editor.js"></script>
<script src="js/main.js"></script>
</head>
<body>
<div class="prompt" id="begin">
<label for="name-input">Name</label>
<input type="text" id="name-input" />
<br/>
<label class="required" for="spritesheet-input">Spritesheet</label>
<input type="file" id="spritesheet-input" accept="image/*" />
<br/>
<label for="bg-input">Background</label>
<input type="file" id="bg-input" accept="image/*" />
<br/>
<br/>
<button id="createnew">Create New</button>
<br/>
<br/>
Or Import Existing
<br/>
<label class="required" for="levelfile-input">Levelfile/CSV</label>
<input type="file" id="levelfile-input" />
<br/>
Metadata <input type="file" id="metadata-input" accept=".yaml" />
<br/>
<button id="import">Import</button>
</div>
<div class="prompt" id="lvldim" style="display: none">
Level Dimensions (in tiles)
<br/>
<label class="required" for="lvlwidth">Width:</label>
<input id="lvlwidth" type="number"/>
<br/>
<label class="required" for="lvlheight">Height</label>
<input id="lvlheight" type="number"/>
<br/>
<button id="lvldim-continue">Continue</button>
</div>
<div class="prompt" id="spritesheet-config" style="display: none">
Spritesheet config
<br/>
<label class="required" for="rows">Rows:</label>
<input id="rows" type="number"/>
<br/>
<label class="required" for="columns">Columns:</label>
<input id="columns" type="number"/>
<br/>
<label class="required" for="width">Sprite width:</label>
<input id="width" type="number"/>
<br/>
<label class="required" for="height">Sprite height:</label>
<input id="height" type="number"/>
<br/>
<button id="ok">Ok</button>
</div>
<div id="editor" style="display: none">
<div id="left"></div>
<canvas id="view">What is wrong with you?</canvas>
<div id="right">right</div>
</div>
</body>
</html>