/
gemooy.html
61 lines (56 loc) · 1.23 KB
/
gemooy.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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Gemooy</title>
<script src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
<script src="../src/playfield.js"></script>
<script src="../src/gemooy.js"></script>
<script>
$(document).ready(function() {
var eso = GemooyController($('#canvas')[0]);
$('#load').click(function() {
eso.load($('#program'));
});
$('#start').click(function() {
eso.start();
});
$('#stop').click(function() {
eso.stop();
});
});
</script>
<style>
#canvas { border: 1px solid blue; }
#info { float: right; }
</style>
</head>
<body>
<p id="info">
Gemooy on:
<a href="http://catseye.tc/node/Gemooy.html">catseye.tc</a> |
<a href="https://github.com/catseye/Gemooy">github</a> |
<a href="http://esolangs.org/wiki/Gemooy">esolangs wiki</a>
</p>
<h1>Gemooy
<button id="load">Load</button>
<button id="start">Start</button>
<button id="stop">Stop</button>
</h1>
<canvas id="canvas" width="400" height="400">
Your browser doesn't support displaying an HTML5 canvas.
</canvas>
<textarea id="program" rows="25" cols="40">
% @@ @@
# @ $ @
@
# #
#
@
# # #
# #
@ @
@ @@
# @ @ @
@ @ @
</textarea>
</body>