-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditor.html
44 lines (41 loc) · 1.32 KB
/
editor.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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>sand.js editor</title>
<script src="js/config.js"></script>
<script src="js/editor.js"></script>
</head>
<body onload="start()">
<canvas id="cells" width="256" height="1">Your browser doesn't appear to support the HTML5 <code><canvas></code> element.</canvas>
<canvas id="rules" width="256" height="256">Your browser doesn't appear to support the HTML5 <code><canvas></code> element.</canvas>
<textarea id="config" rows="20" cols="40">cell empty 0 0 0 0.5
cell sand 255 193 7 1.0
cell wall 158 158 158 0.5
cell water 0 145 234 0.9
cell plant 100 221 23 0.8
cell fire 213 0 0 0.1
rule empty sand sand empty
rule wall empty wall empty
rule wall sand wall sand
rule wall fire wall empty
rule empty fire empty empty
rule fire sand sand empty
rule plant empty plant empty
rule plant fire fire fire
rule plant sand plant sand
rule plant wall plant wall
rule empty water water empty
rule water plant plant plant
rule water sand sand water
rule water fire water water
rule water wall water wall</textarea>
<button id="update">update</button>
<div>
<a id="download-cells">download cells</a>
<a id="download-rules">download rules</a>
<a id="download-config">download config</a>
</div>
</body>
</html>