-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (89 loc) · 4.2 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 http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keyword" keyword="The Life Engine, LifeEngine, Life Engine, life engine, lifeengine, evolution simulator, The Life Engine editor, organism editor, organism-editor">
<meta name="description" description="Organism Editor is a tool you can use to create organisms to use in The Life Engine.">
<title>Creature Editor</title>
<link rel="stylesheet" href="src/css/style.css">
<link rel="icon" type="image/x-icon" href="src/assets/favicon.ico">
<script src="src/js/editor.js" defer></script>
</head>
<body>
<main>
<div class="editor">
<div class="canvas-container">
<canvas width="550" height="550"></canvas>
</div>
<div class="editor-setting">
<div class="editor-cellbutton-wrapper">
<div class="editor-cellbutton" data-cell="mouth">
</div>
<div class="editor-cellbutton" data-cell="producer" data-active="">
</div>
<div class="editor-cellbutton" data-cell="mover">
</div>
<div class="editor-cellbutton" data-cell="killer">
</div>
<div class="editor-cellbutton" data-cell="armor">
</div>
<div class="editor-cellbutton" data-cell="eye">
</div>
</div>
<form class="organism-detail">
<label for="org-name">Name:</label>
<input name="name" id="org-name" type="text">
<label for="org-food">Food collected:</label>
<input name="food" id="org-food" value="0" type="number">
<label for="org-direction">Direction:</label>
<select id="org-direction">
<option value="0">Up</option>
<option value="1">Right</option>
<option value="2">Down</option>
<option value="3">Left</option>
</select>
<label for="org-mutation">Mutation rate:</label>
<input name="mutation" id="org-mutation" value="5" type="number">
<br>
<label for="eye-direction">Eye Direction:</label>
<select id="eye-direction">
<option value="0">Up</option>
<option value="1">Right</option>
<option value="2">Down</option>
<option value="3">Left</option>
</select>
<label for="canvas-width">Canvas Width Radius:</label>
<input name="width" id="canvas-width" min="1" value="7" type="number">
<label for="canvas-height">Canvas Height Radius:</label>
<input name="height" id="canvas-height" min="1" value="7" type="number">
<label for="canvas-cellSize">Canvas Cell Size:</label>
<input name="cellSize" id="canvas-cellSize" min="1" value="30" type="number">
<button id="canvas-resize">Resize</button>
</form>
</div>
<div class="editor-button-wrapper">
<a class="editor-button" href="" download="" id="jsonexport">
<svg>
<use x="0" y="0" width="32" height="32" xlink:href="src\assets\icons.svg#export"></use>
</svg>
</a>
<a class="editor-button" id="jsonimport">
<svg>
<use x="0" y="0" xlink:href="src\assets\icons.svg#import"></use>
</svg>
<label for="file">Load organism</label>
<input type="file" id="file" accept=".json">
<button>Upload</button>
</a>
<a class="editor-button" id="opengithub" href="https://github.com/Notenlish/organism-editor">
<svg>
<use x="0" y="0" width="32" height="32" xlink:href="src\assets\icons.svg#github"></use>
</svg>
</a>
</div>
</div>
</main>
</body>
</html>