-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
164 lines (139 loc) · 5.8 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html>
<html>
<head>
<title>Character Generator</title>
<meta charset="UTF-8">
<link rel="icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJ1BMVEVHcEzytYYAAABhPAA2Njbkhnb/2rCYWUE9GwD6+voskrrX19cedpDJqZNvAAAAAXRSTlMAQObYZgAAAFRJREFUCNdjYIADJiUlCEPFxQnCVAIBBbCUCpThqKQkAma4CSmmgBmCQABiMEs0SjQagBjRB2W2ghmRy7KmghmlYonhIAaDeaBoMdgOZmNjAwYsAACaGQ2gK4O7gQAAAABJRU5ErkJggg==">
<link rel="stylesheet" href="script/main.css">
<script type="module" src="script/debug.js"></script>
<script type="module" src="script/main.js"></script>
<script type="module" src="script/nav.js"></script>
</head>
<body>
<div id="title-box">
<div id="title">Character Sprite Generator (WIP)</div>
<div id="version"></div>
</div>
<div id="description">
<p>
A character sprite generator inspired by
<a class="button extern" href="https://stendhalgame.org/">
<span class="button">Stendhal</span></a> ,
<a class="button extern" href="https://lpc.opengameart.org/">
<span class="button">Liberated Pixel Cup</span></a> , &
<a class="button extern" href="https://opengameart.org/users/cabbit">
<span class="button">Cabbit</span></a>.
</p>
<p>
For licensing, attribution, and sources information of assets provided here, see the
accompanying <a class="button" id="asset-info"><span class="button">README</span></a>.
</p>
<p>
Please <a class="button" href="info.html"><span id="button-info" class="button">read this</span></a> before using assets.
</p>
</div>
<!-- hidden canvas to build animation preview in background -->
<canvas id="animation-builder" class="hidden"></canvas>
<div id="container">
<div id="input" class="left-column">
<span class="box-caption">Main Options:</span>
<div id="options-main" class="box options-box">
<div class="option-label">Size:</div>
<select id="select-size" class="option">
<option value="">--</option>
</select>
<div class="option-label">Body Type:</div>
<select id="select-type" class="option">
<option value="">--</option>
</select>
</div> <!-- options-main -->
<span class="box-caption">Base Layers:</span>
<div id="options-base" class="box options-box-ext">
<div class="option-label">Body:</div>
<input class="toggle-visible" id="show-body" type="checkbox">
<select id="select-body" class="option">
<option value="">--</option>
</select>
<div class="option-label">Arms:</div>
<input class="toggle-visible" id="show-arms" type="checkbox">
<select id="select-arms" class="option">
<option value="">--</option>
</select>
<div class="option-label">Head:</div>
<input class="toggle-visible" id="show-head" type="checkbox">
<select id="select-head" class="option">
<option value="">--</option>
</select>
<div class="option-label">Ears:</div>
<input class="toggle-visible" id="show-ears" type="checkbox">
<select id="select-ears" class="option">
<option value="">--</option>
</select>
<div class="option-label">Eyes:</div>
<input class="toggle-visible" id="show-eyes" type="checkbox">
<select id="select-eyes" class="option">
<option value="">--</option>
</select>
</div> <!-- options-base -->
<span class="box-caption">Outfit Layers:</span>
<div id="options-outfit" class="box options-box">
<div class="option-label">Shoes:</div>
<select id="select-shoes" class="option">
<option value="">--</option>
</select>
<div class="option-label">Legs:</div>
<select id="select-legs" class="option">
<option value="">--</option>
</select>
<div class="option-label">Torso:</div>
<select id="select-torso" class="option">
<option value="">--</option>
</select>
<div class="option-label">Mask:</div>
<select id="select-mask" class="option">
<option value="">--</option>
</select>
<div class="option-label">Hair:</div>
<select id="select-hair" class="option">
<option value="">--</option>
</select>
<div class="option-label">Hat:</div>
<select id="select-hat" class="option">
<option value="">--</option>
</select>
<div class="option-label">Detail:</div>
<select id="select-detail" class="option">
<option value="">--</option>
</select>
</div> <!-- options-outfit -->
</div> <!-- input -->
<div class="column-spacer"></div> <!-- spacer -->
<div id="output" class="right-column">
<span class="box-caption">
Preview:
<input id="upscale" type="checkbox">
<label for="upscale">scale x2</label>
</span>
<div class="box preview-box">
<canvas class="preview" id="animated-preview"></canvas>
</div>
<div class="box preview-box">
<canvas class="preview" id="preview"></canvas>
</div>
<a class="button" onclick="onDownload()">
<div class="button-container">
<span id="button-download" class="button">Download</span>
</div>
</a>
</div> <!-- output -->
</div> <!-- container -->
<div id="footer">
<p>Character Sprite Generator by Jordan Irwin licensed under <a href="LICENSE.txt">MIT</a></p>
<p>background image by Kimmo Rundelin licensed under
<a href="doc/licenses/CC-BY-SA-3.0.txt">Creative Commons Attribution-ShareAlike 3.0</a></p>
<p>this software is a work-in-progress</p>
<p>source code available on <a class="button extern" id="git-repo"><span class="button">GitHub</span></a></p>
<p id="desktop-download"></p>
</div>
</body>
</html>